In ASP.net, how would I obtain a visitor's host name instead of just the ip address? In other words, to get something like this (canonical name): ool-752652g1.dyn.optonline.net Instead of this: 64.135.87.300
It's not the size of the dog in the fight, it's the size of the fight in the dog.
WOuldn't you retrieve the IP and then pass it to a function in .NET that would resolve the IP into a host name??? Woka
My .NET Tutorials: • Silverlight Enabled WebPart in WSS My VB.NET Code Examples: • Create IIS Virtual Directory • Validate Login Against Active Directory • Automatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET My ASP.NET Code Examples: • Login To Website (Forms Authentication) • Login To Website (Custom Authentication) My VB6 Code Projects: • Multithreading In VB6 • Custom Tooltips • Multi Language Support • Item Selector Control • Annimated Systray Icon • Simple Effective Graph Control • Download From Web • LiveUpdate, download application updates from the web automatically • Systray Notification Messages • Skin A Form • API Timer • Badger Messenger, an MSN clone that uses the MSN Network • Wokawidgets VB6 Component Suite
If that is the case, do you know what function that would be or where on a website it can be found?
Try searching this form for resolve IP address, or even better, search the General VB section. Woka
strHost = System.Net.Dns.GetHostByAddress(YourIP).HostName;
Forum Rules