> No question is "too dumb" for a beginners' list.
>
> 23 . You look up this sort of information in the file /etc/services .
>
> IF you want to connect to a different port, you specify that on the
command
> line. For example,
>
>         telnet somehost 25
>
> will attempt to connect to port 25 (smtp) on somehost.

And if you don't believe it you can see it in action.
The port numbers are in the TCP line.
I cheated and used an ax25 port to capture.

This one is from a telnet.

Tue Jul 18 01:17:55 2000 - ax7 sent:
AX25: VK3BVP-1->VK3BVP-3 UI pid=IP
IP: len 47 bvpip->vk3bvp-3 ihl 20 ttl 19 prot TCP
TCP: 23->1077 Seq x67afa01d Ack x604565 ACK PSH Wnd 432 Data 7
0000  login:

This one is from a pop3 server.

Tue Jul 18 01:33:29 2000 - ax7 sent:
AX25: VK3BVP-1->VK3BVP-3 UI pid=IP
IP: len 76 bvpip->vk3bvp-3 ihl 20 ttl 19 prot TCP
TCP: 110->1082 Seq x4bc45000 Ack x6e8861 ACK PSH SYN Wnd 432 MSS 216 Data 32
0000  +OK bvpip.ampr.org. POP3 ready..


/17/00 +0530, you wrote:
> >sorry if the question seems too dumb...
> >
> >when i say telnet and a hostname which port does it normally connect to
> >i.e which is the default port that i connect to.
>
>
> --
> ------------------------------------"Never tell me the odds!"---
> Ray Olszewski                                        -- Han Solo
> Palo Alto, CA                    [EMAIL PROTECTED]
> ----------------------------------------------------------------

Shane Deering

Packet VK3BVP@VK3BVP.#SEV.VIC.AUS.OC
EMAIL [EMAIL PROTECTED]
http://www.qsl.net/vk3bvp/index.htm



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to