?
Solved

search ip's near me

Posted on 2003-03-10
10
Medium Priority
?
2,734 Views
Last Modified: 2008-01-16
Hi,
how do I find IP's that are near me?
I mean IP's that I can reach with minimal hops.

cheers
-roman
0
Comment
Question by:romanm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 18

Expert Comment

by:chicagoan
ID: 8109907
IP addresses aren't (strictly speaking) geographic. ISP's route traffic the cheapest way by 'peering' with other ISP's. You reach your ISP via a telco connection to the main office and then to the ISP network or through a direct fiber connection if you're lucky enough to be in a building that's connected. At home you're going through the telephone company (on dialup, ISDN or DSL) or though your cable company. You'll just have to use traceroute (tracert my.destination.com in windows) to see the path your ISP takes to reach others. Hops aren't only metric you need to look at, latency and dropped packets can make a 'shorter' route pretty miserable.
0
 
LVL 3

Expert Comment

by:Flash828
ID: 8110420
Well, for one, IP's on the same subnet as you will be near you.  So you have have an IP address (this is an example), of 192.168.1.13, and your subnet mask is 255.255.255.0, then all the IP's in the range 192.168.1.1 - 192.168.1.254 are geographically very close to you.  Note that in this example I used the private address space for a Class C address.  This will likely not be the case for you (if it is then people are REAL close to you ont his network.. as in next door).

Second of all, one hop will mean that all traffic behind your gateway, which will be the same as what I wrote above.  If you are looking for two hops, you just increased your geographic region by anywhere from a block to a city, depending on where you are, who and who your ISP is.

If you REALLY want to know, then start collecting information about your friends using other ISPs.  Get their network numbers (eg in the example above, your network would be 192.168.1.0 because the subnet mask was 255.255.255.0).  Since the numbers they provide you will all be within their respective gateways, this information along with their subnet masks, will tell you who is on the same network, and thus who is as close as that friend.  Of course this is very relative.  If people are using dialup, then this is even less accurate.  If people are on cable modem's this information is very accurate, as it represents people on the same Node (a node is similar to a router, except its on a telephone pole near you).

If you get more specific as to what kind of geographic range then let me know.
0
 
LVL 1

Expert Comment

by:compuphonic
ID: 8110478
Run a tracert on the IP or hostname to find the hops.

eg from a command prompt on NT/W2k/XP use:
   tracert www.google.com 
or tracert 10.0.0.1

If you want to find hosts that you don't know about then you can use several methods.

Run a scan of a range of IP addresses, this usually automates the process of performing some type of ping and lists the hosts that respond.

Run a sniffer on your PC, this will decode ethernet traffic and allow you to 'see' whats going down the wire.

Have a look at (expensive) apps like Network Instruments Observer or Eeye's Iris to get an idea of whats possible in software.

If you've really got money to burn a hardware network probe will help.
0
Limited time offer using promo code EXPERTS30

Designed with a wealth of functionality and convenience, ATEN's new Thunderbolt™ 2 Sharing Switch takes your Thunderbolt setup to the next level. Now through September 15, 2017, Experts Exchange members get 30% off the US7220 on the ATEN USA eShop using promo code EXPERTS30.

 
LVL 79

Expert Comment

by:lrmoore
ID: 8110724
You will only be able to find IP addresses with a scanner or sniffer on your own network, not across public routers.

Can you be more specific on what you are trying to do?
0
 
LVL 3

Author Comment

by:romanm
ID: 8124151
let me try and refine my question,
I want to find the ip's that are near me, outside of my subnet!
BUT:
I want to do it inside my c++ pure win32 api application.
I want the application to run and print me:

ip xxx.xxx.xxx.xxx is N hops from localhost
ip xxx.xxx.xxx.xxx is N hops from localhost
ip xxx.xxx.xxx.xxx is N+1 hops from localhost
ip xxx.xxx.xxx.xxx is N+2 hops from localhost
ip xxx.xxx.xxx.xxx is N+15000 hops from localhost

0
 
LVL 3

Expert Comment

by:Flash828
ID: 8124974
Ummmm...........

I duno.

I think you might want to post that in the Programming topic, you would be more likely to get an answer for it.

I definitely have no clue how to do this.
0
 
LVL 3

Expert Comment

by:Flash828
ID: 8124976
Haha... thats a completely different question.
0
 
LVL 79

Expert Comment

by:lrmoore
ID: 8124992
Unless you can read the routing table at the next hop, you'll not be able to find out what subnets are connected to it. You simply can't do that with a program on your own network. Most of the routers are locked down with good security so you won't be able to do that. Just think what a nifty tool this would be for all the hackers out there in the world.

0
 
LVL 3

Accepted Solution

by:
Flash828 earned 750 total points
ID: 8125005
Thats not neccessarily true.  If you are scanning all IP's that have a TTL of 2, then you would find all IPs that exist exactly one hop away from that router.  Either way, this would take for ever.
0
 

Expert Comment

by:CleanupPing
ID: 9153166
romanm:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question