Any way to get where an application connects to?

0

Is there any built-in way to know in windows 7 where the spotify application connects to?

I'd like to know if it connects to the local (the same country) server, or some abroad one.

Yes, I could install some personal firewall like Comodo or Outpost or something else, but for this task I see that as an overkill.

Any ideas with built-in tools or something really lightweight?

zerkms

Posted 2012-10-10T20:12:09.973

Reputation: 946

Answers

2

You can do this at a command prompt to find out:

netstat -b

If you don't feel like looking through the output, open powershell instead then:

netstat -b -n | Select-String 'spotify' -context 1

Here is the powershell oneliner with it doing a reverse DNS lookup on the IP for you:

netstat -b -n | Select-String 'spotify' -context 1 | %{$ip=($_.context.precontext -split '\s+')[3].split(':')[0]; $nethost= [System.Net.Dns]::GetHostbyAddress($ip).HostName; "$ip = $nethost"}

EBGreen

Posted 2012-10-10T20:12:09.973

Reputation: 7 834

Yeah, but its output (with additional -n) contains all the connections and it will be a bit painful to look through what connection is used by a particular app. (+1 though) – zerkms – 2012-10-10T20:19:42.227

Oh, I need glasses - right, netstat contains the application name. So it's trivial now, thanks – zerkms – 2012-10-10T20:23:25.450

0

Spotify connects to many nodes in a peer-to-peer network, some will be close to you, other far away.

Johan

Posted 2012-10-10T20:12:09.973

Reputation: 109

And who does host those peers? Are they all spotify's servers? – zerkms – 2012-10-10T20:19:00.853

>

  • "The contents of each client's cache is summarized in an index which is sent to the Spotify stream hub upon connecting to the service. This index is then used to inform other clients about additional peers they can connect to for fetching streamed data for individual tracks being played. This is accommodated by each client, upon startup, acting as a server listening for incoming connections from other Spotify users, as well as connecting to other users to exchange cached data as appropriate. There are currently no official details from the developers ..." http://en.wikipedia.org/wiki/Spotify
  • – zerkms – 2012-10-10T20:25:58.193