ports


 
Thread Tools Search this Thread
Operating Systems Solaris ports
# 1  
Old 06-15-2008
Question 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! Smilie
# 2  
Old 06-15-2008
have a look at the output of:

Code:
# netstat -rn

# 3  
Old 06-21-2008
Quote:
Originally Posted by DukeNuke2
have a look at the output of:

Code:
# netstat -rn

Is it show routing?

I think you want to type "netstat -a" right?
# 4  
Old 06-21-2008
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
# 5  
Old 06-21-2008
sorry typo error , it should be netstat -rn |grep LISTEN
# 6  
Old 06-25-2008
I tried to use netstat -a without LISTEN and it returned many things, including lines as bellow:
-------------------------
Quote:
d5ba6850 stream-ord 00000000 00000000 /tmp/.X11-unix/X0
d5ba6958 stream-ord 00000000 00000000 /var/tmp/orbit-root/linc-931-0- 4862c3d642e76
d5ba6a60 stream-ord 00000000 d5b99600 /var/tmp/orbit-root/lin c-931-0-4862c3d642e76
d5ba6b68 stream-ord 00000000 00000000 /var/tmp/orbit-root/linc-936-0- 48629b649b0e
d5ba6c70 stream-ord d5b99600 00000000 /var/tmp/orbit-root/linc-931-0-4862c3d6 42e76
d5ba6d78 stream-ord d57bdb40 00000000 /var/tmp/orbit-root/linc-936-0-48629b64 9b0e
d5ba6e80 stream-ord 00000000 d57bdb40 /var/tmp/orbit-root/lin c-936-0-48629b649b0e
d53cf008 stream-ord 00000000 00000000 /tmp/.X11-unix/X0
d53cf110 stream-ord 00000000 d57ca0c0 /tmp/.X11-unix/X0
d53cf218 stream-ord 00000000 00000000 /tmp/.X11-unix/X0
d53cf320 stream-ord 00000000 d57ca0c0 /tmp/.X11-unix/X0
d53cf428 stream-ord 00000000 00000000 /tmp/.X11-unix/X0
d53cf530 stream-ord 00000000 d57ca0c0 /tmp/.X11-unix/X0
d53cf638 stream-ord 00000000 00000000 /tmp/.X11-unix/X0
d53cf740 stream-ord 00000000 d57ca0c0 /tmp/.X11-unix/X0
d53cf848 stream-ord 00000000 00000000
d53cf950 stream-ord 00000000 00000000 /tmp/.X11-unix/X0
d53cfa58 stream-ord 00000000 00000000 /tmp/.X11-unix/X0
d53cfb60 stream-ord 00000000 d57ca0c0 /tmp/.X11-unix/X0
d53cfc68 stream-ord 00000000 d57ca0c0 /tmp/.X11-unix/X0
d53cfd70 stream-ord d57ca0c0 00000000 /tmp/.X11-unix/X0
d53cfe78 stream-ord d53d0cc0 00000000 /var/run/.inetd.uds
----------------------

What does this information mean??

Thanks,

Fernanda
# 7  
Old 06-26-2008
Quote:
Originally Posted by incredible
sorry typo error , it should be netstat -rn |grep LISTEN
no, "netstat -an" was right. was my fault Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Ports

** forum admins: Before you come down on my like a wrath of something, I can get no decent answers so I have to come to these Gurus' court *** I am by no means Unix expert. However, none of our unix admin (aix & hpux) can give me an answer that makes sense. My Issue: Assigned ports in 8601,... (7 Replies)
Discussion started by: rsheikh
7 Replies

2. UNIX for Dummies Questions & Answers

ports

When the netstat -an command is run on current unix machine, it seems that there's an excessive amount of ports established (roughly 600). How can I tell what each of these ports are being used for? (1 Reply)
Discussion started by: lastchance551
1 Replies

3. Solaris

regarding ports

Hi , I need one help... Is there any command on solaris 10 to free the ports. For e.g I used netstat -na| grep 8080 it displays either it is listening or established.. i want to free the ports... Anyone please help me on this... Thanks, Shanmuga (2 Replies)
Discussion started by: shanshine
2 Replies

4. HP-UX

Ports

Can any one tell the command for which process are running on a perticular port (1 Reply)
Discussion started by: zsujith
1 Replies

5. UNIX for Dummies Questions & Answers

Ports...

Hello UNIX people... This is my first foray into the UNIX world so go easy on me... I have a client who has hired me to do some work on his windows stuff, BUT it just so happens his UNIX server started giving him problems... He is running SCO Open Server 5.0.6 The TTY ports won't... (5 Replies)
Discussion started by: TechKnow
5 Replies

6. IP Networking

Ports

What are some good sites that list all TPC/UDP ports? ~thanks (3 Replies)
Discussion started by: ireeneek
3 Replies

7. IP Networking

ports???

Ok, I've been working in the IT field for about 3 years now and I never fully understood the concept of ip ports. I just started a new job that uses Solaris and today it kinda clicked in my head and I want to know if I'm right or wrong. Does each ip address have multiple ports. because we... (4 Replies)
Discussion started by: eloquent99
4 Replies

8. UNIX for Dummies Questions & Answers

Ports

I know i can look in the /etc/services file to look at referenced port numbers, but is there a command that will list the current ports being used? (i.e. what is the application does not have an entry in the services files :confused: ) (2 Replies)
Discussion started by: Ralf
2 Replies

9. UNIX for Dummies Questions & Answers

Ports

How To Close ports,for example finger port 79?? :confused: :confused: :confused: 10x (6 Replies)
Discussion started by: Yaki
6 Replies

10. UNIX for Dummies Questions & Answers

ports

how can i check to see if my mail ports are open (port 110 for incoming and 25 for outgoing)? I want to do this because i am having a problem sending email out. If one of the ports has a problem, how can i open it? Thanks in advance! (9 Replies)
Discussion started by: djatwork
9 Replies
Login or Register to Ask a Question