Getting client computer name using its IP
-
Hi, I am working on a TCP server application. Can I get the computer name of a connected client using its IP? I am using getnameinfo(), but its giving only the IP. I want to get the computer name as I already having the client IP. Please help me.
Regards, Sunil Kumar
-
Hi, I am working on a TCP server application. Can I get the computer name of a connected client using its IP? I am using getnameinfo(), but its giving only the IP. I want to get the computer name as I already having the client IP. Please help me.
Regards, Sunil Kumar
getnameinfo[^]?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Hi, I am working on a TCP server application. Can I get the computer name of a connected client using its IP? I am using getnameinfo(), but its giving only the IP. I want to get the computer name as I already having the client IP. Please help me.
Regards, Sunil Kumar
The
getnameinfo
API ask the DNS for the IP to Name resolution. In general, getting a name from an IP requires a reverse DNS lookup to be configured in the DNS. That's not granted to happen for clients and dynamic addresses across the Internet. It works properly only if you are in coherently administrated network. Otherwise it is mostly impossible. Have a talk with your network administrator on how DNS works in your company.2 bugs found. > recompile ... 65534 bugs found. :doh: