get host name from Ip address
-
Hello everybody, i have an ip address. Now how can i get it's host name. Thanks
If you can think then I Can.
DNS.GetHostByAddress[^]. FYI - C# is not my primary competency. No prizes for guessing how did I find an answer. :rolleyes:
"Real men drive manual transmission" - Rajesh.
-
Hello everybody, i have an ip address. Now how can i get it's host name. Thanks
If you can think then I Can.
You can use: - Dns.GetHostEntry[^] - Dns.GetHostByAddress[^] The second method is obsolete and using the first alternative is recommended but you will see these details in documentation. :)
-
DNS.GetHostByAddress[^]. FYI - C# is not my primary competency. No prizes for guessing how did I find an answer. :rolleyes:
"Real men drive manual transmission" - Rajesh.
Precise answer. :)
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick
-
Hello everybody, i have an ip address. Now how can i get it's host name. Thanks
If you can think then I Can.
If it's your address wouldn't it be your name? :confused: