Checking open ports in a system

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Checking open ports in a system
# 1  
Old 06-16-2017
Checking open ports in a system

Hi,

There are two servers which needs to be connected via the port number 1521 from a remote server.

This is the port config in the first server : L28tstream1 :

Code:
[root@L28tstream1 ~]# netstat -tulpn | grep 1521
tcp        0      0 10.67.26.183:1521           0.0.0.0:*                   LISTEN      23988/tnslsnr
[root@L28tstream1 ~]#

This is the port config in the 2nd server : L28stream2 :

Code:
[root@L28stream2 ~]# netstat -tulpn | grep 1521
tcp        0      0 :::1521                     :::*                        LISTEN      24017/tnslsnr
[root@L28stream2 ~]#

As you can see, the way the port is open in both the servers above is different. For the first server, the port is stated with the ip address, whereas for the 2nd one this is not the case.

Also for the first server, the "Foreign Address" column displays as 0.0.0.0:* whereas for the 2nd one it just has some dots like :::*.

How are the lines above configured for each server to look like how they look above? What do the differences mean? What do the dots indicate?
# 2  
Old 06-16-2017
The second looks like an IPv6 address, but I'm surprised the protocol listed is tcp and not tcp6
# 3  
Old 09-22-2017
I vaguely remember there being bugs in netstat which gave the symptoms you are seeing.

You might want to try the newer 'ss' command instead, supports wider terminals.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

Open/close of ports

Hi, I have read some forum theads about the open and close ports. some points are clear and it is not working on my machine or something am i missing? I have commented out a port /etc/services, one application uses then when i use the telnet <hostname> <port_blocked> it shows connected..... (1 Reply)
Discussion started by: balamv
1 Replies

2. UNIX for Dummies Questions & Answers

open ports and services

just a quick question: a. whats the simplest command to check open port and the corresponding services? example: bash-2.05# netstat -an | grep LISTEN *.199 *.* 0 0 49152 0 LISTEN *.8989 *.* 0 0 49152 ... (1 Reply)
Discussion started by: lhareigh890
1 Replies

3. Solaris

Open ports in solaris 10

hi guys, may i know the exact steps to open a port in solaris.i have some rough idea - which is adding the port number in /etc/services. but i am not sure the correct conventions, steps or any other steps. kindly advise.thanks guys ! (1 Reply)
Discussion started by: cromohawk
1 Replies

4. AIX

Open Ports on System

Hi Every body, What is the command on AIX 5.2 that can be used to get all open ports? (2 Replies)
Discussion started by: aldowsary
2 Replies

5. Shell Programming and Scripting

Check open ports every ...

Hello, i need a script (bash type maybe?..), which would check open ports on 127.0.0.1 and then compare open ports with "registered/allowed" port list and try to kill the program who uses unregistered ports. It would be great that script would be started lets say every 5 or 10 minutes. You see i... (2 Replies)
Discussion started by: MorchiuS
2 Replies

6. UNIX for Advanced & Expert Users

determining open ports

hi all 1) how to determine available ports in a box (solaris) do i have to go for a netstat on all the ports? 2) how to block a particular port for a particular type of connection. Any help would be greatly appreciated Thanks (7 Replies)
Discussion started by: matrixmadhan
7 Replies

7. Programming

Serial Ports - locking them, checking if they are open

Hi, I'm trying to fix up some serial code that was given to me by a coworker no longer on the project. Problem is, when the program is running and reading the port, I can take away the port by doing a cu command in another terminal window. When I release the cu, the program crashes, I think... (1 Reply)
Discussion started by: Oak
1 Replies

8. Linux

How To Open Ports in RedHat ?

how can i open ports i need in red hat server vs root access ? (7 Replies)
Discussion started by: Sirius
7 Replies

9. Cybersecurity

closing open ports

/* Linux Slackware */ Nmap shows the following ports open on the gateway. 21/tcp ftp 22/tcp ssh 23/tcp telnet 25/tcp smtp 37/tcp time 80/tcp http 113/tcp auth 515/tcp printer 587/tcp submission 1024/tcp kdm 6000/tcp x11 ------------------------------- i would like to close as... (10 Replies)
Discussion started by: LowOrderBit
10 Replies
Login or Register to Ask a Question