I am working on a BitTorrent like thing. How can I show the current seeder's IP address and their country flag the way it is shown in BitTorrent client?
Asked
Active
Viewed 2,079 times
-5
-
2Wait, why would bill gates give a flying eff? – FlavorScape Aug 31 '12 at 17:35
-
ah Nothin :) ... i am able to get the total number of seeders and leechers , and tracker lists – creativecodes Aug 31 '12 at 17:35
-
Are you working on a BitTorrent client, or something of your own devising? – andrewsi Aug 31 '12 at 17:50
-
@andrewsi .. Something of my own ... please help guys – creativecodes Aug 31 '12 at 18:45
-
Well, something like http://www.maxmind.com/app/locate_demo_ip will let you lookup country based on IP addresses - they offer an API, I believe. – andrewsi Aug 31 '12 at 18:47
1 Answers
0
There are two largely separate parts - querying the torrent tracker for the seeders IP, and reverse-geocoding the IP addresses to determine the country.
The reverse-geocoding part is a common thing, and easily done. This question lists several options, and this one is similar, but specifically for PHP
The torrent-tracker-querying part is a bit more complicated, due to the various types of torrent trackers. This question explains what you need to do