Networking Forums

Networking Forums > Computer Networking > Linux Networking > telnet syntax for ports

Reply
Thread Tools Display Modes

telnet syntax for ports

 
 
hawat.thufir@gmail.com
Guest
Posts: n/a

 
      01-12-2006, 10:16 AM
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
 
Reply With Quote
 
 
 
 
Maurice Janssen
Guest
Posts: n/a

 
      01-12-2006, 10:29 AM
On Thu, 12 Jan 2006 11:16:12 GMT, (E-Mail Removed) 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
 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      01-12-2006, 06:41 PM

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) pnyqbznva...
>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


 
Reply With Quote
 
hawat.thufir@gmail.com
Guest
Posts: n/a

 
      01-12-2006, 08:15 PM
David Schwartz wrote:
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) pnyqbznva...
> >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

 
Reply With Quote
 
R
Guest
Posts: n/a

 
      01-13-2006, 01:56 PM
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.

 
Reply With Quote
 
Scott R. Haven
Guest
Posts: n/a

 
      01-18-2006, 06:08 PM
R wrote:
> 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.
>



Very true unless it's Windows NT 4. That has it's own application
(which sucks).

Scott R. Haven
Sr. Systems Engineer
Managed Security Services
Paisley Systems, Inc.
http://www.paisleysystems.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable root access to telnet with krb5-telnet Phoe6 Linux Networking 2 06-08-2007 11:00 AM
tFTP syntax for Telnet saving Actiontec config. Pogo Wireless Internet 0 12-03-2005 06:30 AM
Command syntax Invisible Windows Networking 0 02-12-2004 09:20 AM
iptables syntax Matt Linux Networking 1 09-24-2003 11:17 AM
Net Use syntax lynn Windows Networking 1 08-05-2003 10:49 PM



1 2 3 4 5 6 7 8 9 10 11