David said:
It an example you moron. I don't know his network IP addresses. How did you get so stupid.
It's an inappropriate example. Why? IT DOES NOT ANSWER THE OP'S QUESTION.
Pinging the local loopback address (127.0.0.1) as you have suggested,
will *ALWAYS* give you "localhost" for a hostname (unless you have
modified the ETC\HOSTs file to associate it with another hostname (which
would most likely be a mistake)). It's LOCALHOST and has NOTHING to do
with the COMPUTER NAME. These are two distinctly different things.
Try the utilities I posted links for (they are both freeware! Yay!) and
maybe you will learn something. They DO answer directly the OP's request
and they DO work on private LANs (in most, if not all cases), and even
on mant routed WANs (depending on router filter configurations).
FYFI, I have been working in IT for probably much longer than most
people reading/posting here have been alive. Not a boast, merely a fact.
In addition, I'm not always right, in fact I am frequently wrong and
there is an awful lot that I simply do not know (which is one major
reason I frequent this newsgroup - to LEARN. Imagine that!!). I never
have had a problem admitting when I am wrong or simply saying, "I don't
know" (check my posting history here, oh please do! In fact I challenge
you to do so!).
I *rarely* resort to name-calling, such as you have done, in a public
discussion group (save one or two explicitly devoted to "flaming", and
then just for laughs). In your case, however, I just might make an
exception, Mister Candy. The odd thing is, there's really no need for me
to do so, as you apparently do so well enough at degrading yourself with
your own words.
Steve