ports

Hi,

If for example i try to start tomcat in a solaris server and get errors related to address already in use, how can I know if this port is really used for another process?

If someone can point any documentation it will be very helpfull.

Thanks! :rolleyes:

have a look at the output of:

# netstat -rn

Is it show routing?

I think you want to type "netstat -a" right?

netstat -an |grep LISTEN
check which ports are in listening mode.
Port Number Description
1 TCP Port Service Multiplexer (TCPMUX)
5 Remote Job Entry (RJE)
7 ECHO
18 Message Send Protocol (MSP)
20 FTP -- Data
21 FTP -- Control
22 SSH Remote Login Protocol
23 Telnet
25 Simple Mail Transfer Protocol (SMTP)
29 MSG ICP
37 Time
42 Host Name Server (Nameserv)
43 WhoIs
49 Login Host Protocol (Login)
53 Domain Name System (DNS)
69 Trivial File Transfer Protocol (TFTP)
70 Gopher Services
79 Finger
80 HTTP
103 X.400 Standard
108 SNA Gateway Access Server
109 POP2
110 POP3
115 Simple File Transfer Protocol (SFTP)
118 SQL Services
119 Newsgroup (NNTP)
137 NetBIOS Name Service
139 NetBIOS Datagram Service
143 Interim Mail Access Protocol (IMAP)
150 NetBIOS Session Service
156 SQL Server
161 SNMP
179 Border Gateway Protocol (BGP)
190 Gateway Access Control Protocol (GACP)
194 Internet Relay Chat (IRC)
197 Directory Location Service (DLS)
389 Lightweight Directory Access Protocol (LDAP)
396 Novell Netware over IP
443 HTTPS
444 Simple Network Paging Protocol (SNPP)
445 Microsoft-DS
458 Apple QuickTime
546 DHCP Client
547 DHCP Server
563 SNEWS
569 MSN
1080 Socks

sorry typo error , it should be netstat -rn |grep LISTEN

I tried to use netstat -a without LISTEN and it returned many things, including lines as bellow:
-------------------------

----------------------

What does this information mean??

Thanks,

Fernanda

no, "netstat -an" was right. was my fault :o

Does anyone know what the information returned means?

Thanks.

please don't "bump" up posts. it's against the rules.

I can't tell you what it mean. But if you want to know about your tomcat's port. you just "netstat -a |grep tomcat's_port" if have output then it have some application use this port.

may help u
aRm_nAja