Click here to Skip to main content
16,012,107 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

I have created a project in Windows Application using C sharp codings , in that i have to get the Latitude and Longitude from the IP Address and MAC Address , so can any one suggest me to get the Latitude and Longitude for the given IP Address & MAC Address using C sharp codings in Windows application. Thanks in Advance . :)
Posted

1 solution

The first thing is: the MAC address won't help you - it has no geographic location and it isn't normally propagated beyond the internet connection router so it is very unlikely to acquire one.

To do anything like this, you need to get the external IP address (which is not your PC IP - that again doesn't leave the local network) which means talking to an external site which will bounce it back to you. You can then use a geolocation service to find the latitude and longitude.

Google can help you with both of these tasks.
 
Share this answer
 
Comments
SARAVANAKUMAR.M 30-Apr-13 4:35am    
Thanks for your reply , Griff. I will be storing some set of IP address in Database for those stored IP address , i have to generate Latitude and Longitude. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900