How to find my real location from an IP?

Dear,
When I go to hidemyip.com, it shows that I am from Lebanon.
hidemyipBut when I go to whatismyip.com, it shows that my ip have 2 different locations:
iphave2locations.
and that i am not under proxy:
whatismyip
How can hidemyip know my real location, while whatismyip show 2 places?
Thx
hassanayoub85Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
coolfigerCommented:
its simple .. one system is using a diffrent lookup method form the other.,

How these thigns work is they query a database which refrences your IP address to a location. There are a few databases onlien which they can query to find your location via ip address. In some cases when they do not find yrou ip they try to locate you based on the owner of the netblock which the ip address range is registered to. This may be why whatmy ip shows you in two countries as the ip range may be spread accross both networks.


Some also use traces on your routes and identify the core internet routers to get your location .. it may be that to ..


mabe some one else has a better explanation
0
 
hassanayoub85Author Commented:
Ok good explanation which i was thinking on too.
However, Any idea how to use those libraries?
0
 
basicinstinctCommented:
0
All Courses

From novice to tech pro — start learning today.