views:

148

answers:

4

I know how to scan subnets in c++...I also know how to find geo location (altough it's not 100%)...But does anyone have an idea how can i find the closest ip addresses to mine ?

Ex one neighbor is 100 meters from me and another one is 50 and if they are both connected to the internet, i should get the ip of the second which is 50 meters away from me.

Is there any possible way to implement this via programming language ?

A: 

IP geolocation only locates the ISP. It cannot locate the actual host.

John Saunders
+4  A: 

Forget it. The structure of how ISPs work and allocate their IP's will make this entirely impossible in 99.999999999% of all cases.

The kind of geolocation by IP address you mention - by checking against databases of IP addresses, and by analyzing the route points of the IP - will work on a city level if you're lucky.

The only reliable means of geo-location down to a city borough or even block is a new set of technologies that for example query Wi-Fi hotspots around the user's computer, and compare them with a list of known Wi-Fi hotspots and their locations. See for example yesterday's question about Geolocation in HTML 5.

There is no way to triangulate other users' positions from that, and thank god for that!

Pekka
A: 

The answer is no, you cannot find out what your neighbour's IP address is! How would you know if your neighbour is connected to the same ISP as yours? Again, a dangerous assumption, sure, geolocation may work but not 100% reliable...

They may be connected to Mars Inc ISP for all I care, as there is something fishy about your question - why do you want to know? for D-o-S attacks, hacking...

Hope this helps, Best regards, Tom.

tommieb75
DoS attacks - hell no...Why would i target my neighbors? They are such a nice people lol.I just got inspiration from watching some movies, that's all.
qweqwe
@qweqwe: lol ok....that rules it out...what movies were you watching? :D
tommieb75
A: 

If you're on cable, the bandwidth is shared by everyone using the cable. If you could tap the cable on the other side of your modem, you could see traffic of other people on the same segment. This is changing as DOCSIS 2 and 3 are rolled out, which provide PKI-based AES encryption.

If you're on wireless (WiFi, WiMax, Cellular), you may be able to pull the signals of other people. Limiting factors include 1. encryption (some have been broken) 2. Signal strength (Some technologies use directional antennas)

Obviously neither of these work if your neighbour is not using the same ISP.

Dark Falcon