Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Friends,

I have tried getting location detail using IpAddress and successfully got City and country details using below api's

http://www.geoplugin.net/json.gp?ip=@yourIPAddress //Returns Json

http://api.hostip.info/?ip=@yourIPAddress //Returns XML

Now I wanted to get the company / Registered name along with full address for that IpAddress.

Is this possible using c#? if so what is the approach?
Posted

You can't.

It's possible to get some information (which may or may not be related to the company owning the website) about the company that owns the domain that hosts the IP: http://dotnet-snippets.com/snippet/whois-lookup/668[^]
But...many web hosting companies will host loads of different company domains, and unless they have paid extra for a static IP address they can't be tied to a specific IP: the "owner" of the IP address is the hosting company, and not the company hosting the website on that IP. Even if it is a static IP, the physical location details will refer to the hosting company location: which can easily be on a different continent to the company "owning" the website (mine is, for example, in Nevada, and I'm in Wales)
 
Share this answer
 
It is not likely to get the street address via IP Address but you may locate the nearby city.
 
Share this answer
 

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