Link to home
Start Free TrialLog in
Avatar of hassanayoub85
hassanayoub85Flag for Lebanon

asked on

How to find my real location from an IP?

Dear,
When I go to hidemyip.com, it shows that I am from Lebanon.
User generated imageBut when I go to whatismyip.com, it shows that my ip have 2 different locations:
User generated image.
and that i am not under proxy:
User generated image
How can hidemyip know my real location, while whatismyip show 2 places?
Thx
Avatar of coolfiger
coolfiger
Flag of Trinidad and Tobago image

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
Avatar of hassanayoub85

ASKER

Ok good explanation which i was thinking on too.
However, Any idea how to use those libraries?
ASKER CERTIFIED SOLUTION
Avatar of basicinstinct
basicinstinct
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial