r/programming•
zukee

Anyone know how to get the IP addresses of peers from a torrent program?

I don't have too much experience programming but came up with the idea of an addon for uTorrent or some other torrent program. What I want to do is take the IP addresses of all the people you are connected to and map them using geo-ip. My only problem is I dont know how to extract the IP addresses from u-Torrent.

Does anyone know how to do this or know of another torrent program that would make it easier to do?

Posted Dec 29, 2009, 5:17 AM UTC

05
Chr1831•

Why not just log all of the ip's from port xxxx-xxxx and then graph that?

5
joelhewitt•

Try http://neticon.sourceforge.net/ It uses winpcap to get the IP and port of all connections on your computer and it has a map showing the location of the connection.

Full Disclosure: I wrote it.

3
zukeeOP•

Thanks! thats almost exactly what I was thinking of

1
comex•

Write a G--

well that's boring by now. ktorrent will do it for you, though I suspect there's a much easier way than switching to Linux :p

2
[deleted]•

rtorrent seems to have it by default

1