Click here to Skip to main content
15,868,292 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

How to ping a computer name?
The PC that I want to ping is not having a static IP. They said the computer name is static, ip is dynamic. So how to ping a computer name? I try to find over internet but not have a luck. Is the computer name is the one that appear on Start -> Network?
Posted
Comments
karthik Udhayakumar 23-May-14 3:32am    
Who said that "he computer name is static, ip is dynamic"?
karthik Udhayakumar 23-May-14 3:35am    
Not a very clear question but if you want to find the computer name these can help

1.Start-->MY Computer-->Rightclick -->Properties


2.Start-->run--> type "cmd"-->type "hostname"-->enter
Luiey Ichigo 23-May-14 3:41am    
their ip said sometimes is changing because they have a huge building. So each PC has a unique computer name which not changing itself unless we change it. That's the reason I asking this question..

1 solution

To ping the computer name you need to have the fully qualified domain name address, that is resolvable back through the DNS.

e.g. computername.subdomain.domain.com

It is very rare that internal systems will expose or be resolvable across the internet / intranet boundaries. They would have to be explicitly set up to achieve this.

Typically the gateway would be the last point that would respond.

You ping a name the same way as you would an address as can be seen in this example: http://compnetworking.about.com/od/workingwithipaddresses/ss/how-to-ping-the-ip-address-of-a-computer_3.htm[^]

See the VB.net documentation: http://msdn.microsoft.com/en-us/library/he5sca5t(v=vs.90).aspx[^]
 
Share this answer
 
v2
Comments
Luiey Ichigo 23-May-14 3:44am    
So the "computername.subdomain.domain.com" you said is maybe eg: "\\myuser.localplace". Because I saw some kind of this on their 'Run' dialog.
Luiey Ichigo 23-May-14 3:56am    
thanks man..try it..and it was good :)

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