From: hawat.thufir on
I want server foo.com and port 6789 and have tried:

telnet foo.com -p 6789 (like ssh)
telnet foo.com -port 6789

but am having trouble following the man page, which indicates it's -port.
I'm able to telnet successfully if there's no port, and ssh, but can't
telnet with a port specified.


Usage: telnet [-8] [-E] [-K] [-L] [-X atype] [-a] [-d] [-e char] [-k
realm]
[-l user] [-f/-F] [-n tracefile] [-r] [-x] [host-name [port]]


Pardon, reading the manpage isn't helping at the moment.

shouldn't it be "telnet foo.com port 6789"?

thanks,

thufir
From: Maurice Janssen on
On Thu, 12 Jan 2006 11:16:12 GMT, hawat.thufir(a)gmail.com wrote:
>I want server foo.com and port 6789 and have tried:
>
>telnet foo.com -p 6789 (like ssh)
>telnet foo.com -port 6789
>
>but am having trouble following the man page, which indicates it's -port.
>I'm able to telnet successfully if there's no port, and ssh, but can't
>telnet with a port specified.
>
>
>Usage: telnet [-8] [-E] [-K] [-L] [-X atype] [-a] [-d] [-e char] [-k
>realm]
> [-l user] [-f/-F] [-n tracefile] [-r] [-x] [host-name [port]]
>
>
>Pardon, reading the manpage isn't helping at the moment.
>
>shouldn't it be "telnet foo.com port 6789"?

"telnet foo.com 6789" should do the trick.

--
Maurice
From: David Schwartz on

<hawat.thufir(a)gmail.com> wrote in message
news:Pine.LNX.4.64.0601120605540.1394(a)ybpnyubfg.ybpnyqbznva...
>I want server foo.com and port 6789 and have tried:
>
> telnet foo.com -p 6789 (like ssh)
> telnet foo.com -port 6789
>
> but am having trouble following the man page, which indicates it's -port.
> I'm able to telnet successfully if there's no port, and ssh, but can't
> telnet with a port specified.
>
>
> Usage: telnet [-8] [-E] [-K] [-L] [-X atype] [-a] [-d] [-e char] [-k
> realm]
> [-l user] [-f/-F] [-n tracefile] [-r] [-x] [host-name [port]]
>
>
> Pardon, reading the manpage isn't helping at the moment.
>
> shouldn't it be "telnet foo.com port 6789"?

Something in brackets means something that is optional. By "host-name"
it means that actual host name, not the words. By "port" it means the actual
port, not the word "port". So
[host-name [port]]
Means you may supply a host name, optionally followed by a port. So it
would be:
telnet foo.com 6789

DS


From: hawat.thufir on
David Schwartz wrote:
> <hawat.thufir(a)gmail.com> wrote in message
> news:Pine.LNX.4.64.0601120605540.1394(a)ybpnyubfg.ybpnyqbznva...
> >I want server foo.com and port 6789 and have tried:
> >
> > telnet foo.com -p 6789 (like ssh)
> > telnet foo.com -port 6789
> >
> > but am having trouble following the man page, which indicates it's -port.
> > I'm able to telnet successfully if there's no port, and ssh, but can't
> > telnet with a port specified.
> >
> >
> > Usage: telnet [-8] [-E] [-K] [-L] [-X atype] [-a] [-d] [-e char] [-k
> > realm]
> > [-l user] [-f/-F] [-n tracefile] [-r] [-x] [host-name [port]]
> >
> >
> > Pardon, reading the manpage isn't helping at the moment.
> >
> > shouldn't it be "telnet foo.com port 6789"?
>
> Something in brackets means something that is optional. By "host-name"
> it means that actual host name, not the words. By "port" it means the actual
> port, not the word "port". So
> [host-name [port]]
> Means you may supply a host name, optionally followed by a port. So it
> would be:
> telnet foo.com 6789
>
> DS

Yes, I think I tried that without luck. I was able to telnet
somewhere, so telnet's working. mudconnect, IIRC, showed that the Mud
was up and running. I'll give it a try again, and thanks for the
explanation to all who replied.


-Thufir

From: R on
The correct syntax is

telnet foo.com 6789

If you think you've tried it before, you haven't. Its the correct
syntax for either windows or linux. I use it all the time.

 |  Next  |  Last
Pages: 1 2
Prev: recv() problem?
Next: DHCP Server