943,718 Members | Top Members by Rank

  • Networking Discussion Thread
  • Unsolved
  • Views: 12877
  • Networking RSS
Feb 20th, 2004
0

How to get the Computername

Expand Post »
Hai,
How can i get the Computername by Ping Command When i know the IP number.

(I.e) IP number 10.3.34.86
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bk_raavi is offline Offline
10 posts
since Oct 2003
Feb 22nd, 2004
0

Re: How to get the Computername

I dont' think ping will do it
google is your friend
http://www.google.com/search?hl=en&i...=Google+Search
Featured Poster
Reputation Points: 1448
Solved Threads: 21
Posting Maven
GrimJack is offline Offline
2,735 posts
since Feb 2004
Feb 27th, 2004
0

Re: How to get the Computername

i think that finger will be adequat.
> finger 10.3.34.86
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Swirler is offline Offline
9 posts
since Jan 2004
Feb 27th, 2004
0

Re: How to get the Computername

Isn't finger a unix utility which gets info about the box's logged in users?
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Feb 27th, 2004
0

Re: How to get the Computername

That is correct. Finger won't return the hostname.

Also, if you're attempting to get the hostname of a remote box, that could be considered an attempt to compromise the system (even if you aren't trying to actually DO that) and the new laws carry a penalty of life imprisonment for doing that.

There's also other ways to do what you're trying to do. The easiest is to have that person send you an e-mail, which will contain the originating hostname in the header of the message.

What exactly are you trying to do?
Reputation Points: 128
Solved Threads: 8
Posting Whiz
TheOgre is offline Offline
390 posts
since Aug 2003
Feb 27th, 2004
0

Re: How to get the Computername

Quote originally posted by TheOgre ...
That is correct. Finger won't return the hostname.
Yes, your right, that's completly wrong :-| ...

Instead, TheOgre's solution is a good one. It is possible to get the hostname using a php function too ( $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); )... But it's not easier to make someone visit a web site than to make him send you a mail...
Here again, it depends of what you need to do exactly.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Swirler is offline Offline
9 posts
since Jan 2004
Mar 2nd, 2004
0

Re: How to get the Computername

<i>I dont' think ping will do it
google is your friend
http://www.google.com/search?hl=en&...G=Google+Search>/>

I guess I was being too subtle; this search pointed to a page to find tools that might have but did not work/ Network-Tools.com being the easiest to use. I thought that if he put a little effort into his search he would learn something -- especially the pre-web tools we use to use. Don't you just love those tools: finger, whois, ping, lookup, daemon.

Anyway, looking around on that site would get you to this disclaimer:
Computer ('host') name or domain name? Normally, A domain name is not necessarily a 'host' name. For instance www.consumer.net and www2.consumer.net could be two different 'host' computers under the same domain. The computers could be separated and result in a completely different traceroute for each. A domain name, such as 'consumer.net,' may or may not be a 'host' or machine name depending on the configuration. 'Third level' or higher names, such as www.consumer.net are not registered except internally to the entity that owns the domain name.

This would not have answered the question but the asker might have learned something; I know I did -- give em an answer and point to where you got it, don't just point to where to look around to get the answer.

GrimJack

I do like this group
Featured Poster
Reputation Points: 1448
Solved Threads: 21
Posting Maven
GrimJack is offline Offline
2,735 posts
since Feb 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Networking Forum Timeline: Nic
Next Thread in Networking Forum Timeline: network settings for a game





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC