>What does the command telnet 0 do? I know it will telnet to itself, but does
>it go through anything? I mean gateway and anything else? How is it
>different from telnet-ing to its nodename? Also What about "telnet
>127.0.0.1?" All these telnet do the same thing but are they different? and
When an application uses 0.0.0.0 (the same as 0) as the address in a
connect() call, the OS looks for one of the system's actual addresses and
replaces it with that. So "telnet 0" is essentially the same as "telnet
`hostname`" if the host only has one address.
telnet 127.0.0.1 will connect to the loopback interface rather than the
systems's network interface.
The differences are very slight. For instance, if you do "telnet
127.0.0.1" and login, "who" will show that you logged in from localhost.
But if you do "telnet 0" or "telnet `hostname`" you will be shown as having
logged in from your hostname.
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.