# Checking open ports in a system

**URL:** <https://community.unix.com/t/checking-open-ports-in-a-system/367064>\
**Category:** Red Hat\
**Created:** [June 16, 2017, 6:00am UTC](https://community.unix.com/t/checking-open-ports-in-a-system/367064 "2017-06-16T06:00:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anaigini45](https://community.unix.com/letter_avatar/anaigini45/32/5_5575768a8748004e209b776fc1b2916d.png) [@anaigini45](https://community.unix.com/u/anaigini45)\
**Post date:** [June 16, 2017, 6:00am UTC](https://community.unix.com/t/checking-open-ports-in-a-system/367064/1 "2017-06-16T06:00:03Z")

</div>

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 :

```nohighlight
[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 :

```nohighlight
[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?

---

<div class="post-metadata">

**Author:** ![RudiC](https://community.unix.com/letter_avatar/rudic/32/5_5575768a8748004e209b776fc1b2916d.png) [@RudiC](https://community.unix.com/u/RudiC)\
**Post date:** [June 16, 2017, 4:13pm UTC](https://community.unix.com/t/checking-open-ports-in-a-system/367064/2 "2017-06-16T16:13:55Z")

</div>

The second looks like an IPv6 address, but I'm surprised the protocol listed is `tcp` and not `tcp6`

---

<div class="post-metadata">

**Author:** ![fishface](https://community.unix.com/letter_avatar/fishface/32/5_5575768a8748004e209b776fc1b2916d.png) [@fishface](https://community.unix.com/u/fishface)\
**Post date:** [September 22, 2017, 10:58am UTC](https://community.unix.com/t/checking-open-ports-in-a-system/367064/3 "2017-09-22T10:58:32Z")

</div>

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.
