| | |
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
google is your friend
http://www.google.com/search?hl=en&i...=Google+Search
Isn't finger a unix utility which gets info about the box's logged in users?
Dani the Computer Science Gal 
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds

Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
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?
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?
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
•
•
Join Date: Jan 2004
Posts: 9
Reputation:
Solved Threads: 1
•
•
•
•
Originally Posted by TheOgre
That is correct. Finger won't return the hostname.
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.
<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
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
![]() |
Similar Threads
- how do i auto-shut down windows XP? (Windows NT / 2000 / XP)
- Copy Folder with %Computername% and %Username% prefix (Visual Basic 4 / 5 / 6)
- Going on the internet on a LAN (Windows NT / 2000 / XP)
Other Threads in the Networking Hardware Configuration Forum
- Previous Thread: Nic
- Next Thread: network settings for a game
| Thread Tools | Search this Thread |
802.11 802.11n bluetooth british broadband browserproblems bt connectionproblem connectivity cpu data data-center desktop dual gigabyte green hardware ibm infrastructure internet memory network networking news office program rdimm reliability riched20.dll routers server setup small storage survey technology telecoms troubleshoot uk upgrade videoconferencing view virgin wireless wirelessnetworking






