a question re netstat output

2000-05-07 Thread t s a d i
hello everyone !

when i do _~$ netstat_ on my web server, i get the ff:

snip
bangus:~$ netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address   Foreign Address
State  
tcp0  39595 bangus.myphilippine:www ME21-66.i-manila.c:1520
ESTABLISHED 
tcp0201 bangus.myphilippine:www 210.23.110.23:1129 
ESTABLISHED 
tcp0  20091 bangus.myphilippine:www 203.177.21.243:1551
ESTABLISHED 
tcp0  25491 bangus.myphilippine:www cisco8-s1.pacific:56495
ESTABLISHED 
/snip

my question ...  what does the numbers 1520, 1129, 1551 and 56495 mean
?

thanks a lot and hope someone can shed me some light on this :-)

chad

__
Do You Yahoo!?
Send instant messages  get email alerts with Yahoo! Messenger.
http://im.yahoo.com/


Re: a question re netstat output

2000-05-07 Thread Eric G . Miller
On Sun, May 07, 2000 at 01:06:42AM -0700, t s a d i wrote:
 hello everyone !
 
 when i do _~$ netstat_ on my web server, i get the ff:
 
 snip
 bangus:~$ netstat
 Active Internet connections (w/o servers)
 Proto Recv-Q Send-Q Local Address   Foreign Address
 State  
 tcp0  39595 bangus.myphilippine:www ME21-66.i-manila.c:1520
 ESTABLISHED 
 tcp0201 bangus.myphilippine:www 210.23.110.23:1129 
 ESTABLISHED 
 tcp0  20091 bangus.myphilippine:www 203.177.21.243:1551
 ESTABLISHED 
 tcp0  25491 bangus.myphilippine:www cisco8-s1.pacific:56495
 ESTABLISHED 
 /snip
 
 my question ...  what does the numbers 1520, 1129, 1551 and 56495 mean
 ?

Those would be the port numbers methinks. If I'm not mistaken, it'd be
typical to establish a connection to a web server on port 80, but the
data transfers would go over a high port. Otherwise you'd only be able
to have one client connected to the server at any given point in time.
But I could have that all wrong.

-- 
¶ One·should·only·use·the·ASCII·character­set·when·compos­

» ing·email·messages.



Re: a question re netstat output

2000-05-07 Thread brian moore
On Sun, May 07, 2000 at 01:20:35AM -0700, Eric G . Miller wrote:
 
 Those would be the port numbers methinks. If I'm not mistaken, it'd be
 typical to establish a connection to a web server on port 80, but the
 data transfers would go over a high port. Otherwise you'd only be able
 to have one client connected to the server at any given point in time.
 But I could have that all wrong.

The first part is correct, the second not.

A socket is a unique pair of (IP,port) pairs.  So you could only have
one connection to www.example.com:80 from client.example.net:6363... 
but you could also have a connection from client.example.net:6364, as
well as from foo.example.org:6363 or anything else.

-- 
Brian Moore   | Of course vi is God's editor.
  Sysadmin, C/Perl Hacker | If He used Emacs, He'd still be waiting
  Usenet Vandal   |  for it to load on the seventh day.
  Netscum, Bane of Elves.