How to learn machine name and username by using IP adress
-
I don't know first I used my real name then I decided not to use my real name. Thanks for the answer :)
-
How can I learn a computer's machine name and user name by using IP adress? Can you help me please? Thanks in advance.
-
you can lookup the host name of a computer on a network like this:
System.Net.Dns.GetHostEntry("127.0.0.1").HostName
That will give you the DNS hostname, not necessarily the Windows Computer Name.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
That will give you the DNS hostname, not necessarily the Windows Computer Name.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
I just hope the OP knows the difference. :-D
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
I just hope the OP knows the difference. :-D
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
The code works for my computer's IP address but when I try an another IP address it gives the IP address of the target computer.
-
Here is the code It works. :D Thank you.
System.Net.Dns.GetHostByAddress(IPaddress).HostName.ToString();
-
But I have an another problem. I can't send ping every computers. Can you help me with it?
My.Computer.Network.Ping[^]. BTW, pinging a machine only tells you in the network stack of the target computer is working, up to a certain point, and that's only IF it doesn't have a firewall blocking ICMP traffic. It will NOT tell you if the target server you're trying to connect to is actually listening.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
My.Computer.Network.Ping[^]. BTW, pinging a machine only tells you in the network stack of the target computer is working, up to a certain point, and that's only IF it doesn't have a firewall blocking ICMP traffic. It will NOT tell you if the target server you're trying to connect to is actually listening.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008