Discussion Locked

A Definitive Port list

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Good Day,

I have been assigned the task to create a list of ports that must remain open on my servers. I have used the program 'Active Ports' to scan eight of my 900 some servers (all the servers are running the same software with Windows 2003 Server as the OS).

I have received mixed results from my scans and wanted to ask if there was a better way to determine a way to identify all active ports.

I am sorry if this sounds like networking 101, but I have never been asked to do this before and I want to make sure I am reading my results correctly.

Here is one of the items scanned from Active Ports:
C:\windows\system32\dwcrs.exe [556]
TCP 127.0.0.1:6139 127.0.0.1:3271 Established
TCP 0.0.0.0 :6129 0.0.0.0 :0 Listening
TCP 127.0.0.1:6139 0.0.0.0 :0 Listening

The number in brackets near the process, is that the port (556) that dwcrs.exe uses?
Or are the ports this service uses near the loopback (6129 & 6139)?

If the second is true, why do I have several servers that are using the same applications in the same manner but using different ports for those applications?

Again, I am sorry for sounding so rudimentary; I am just not very familiar with the port scans displaying differently across servers that are running the same applications.

Thank You for your help!

2 replies

by robo_dev

are you trying to determine what ports are open, or what ports need to be open?

To be clear there are 'local ports' that are open to services/processes on the local host, and 'remote ports' that are open to external hosts/clients/hackers.

A port that is open to loopback (127.0.0.1) is not open to any external connection, so that's not technically 'open', from an external standpoint.

However programs and processes running on the server itself can access the server on that port...typcially through a web browser.

In your example above the application dwcrs has port 556 open locally, and port 6139 is open locally as well. 6129 is typically used by DameWare utilties.

Nmap is the best tool for quickly determining what ports are open on a server from an external perspective.

Some applications use a fixed port number that cannot be changed, some applications use a fixed port number than can be changed, and some use a range of ports that cannot be changed, and others use a range that can be changed.

Off the top of my head, apps like Oracle or MS-SQL use one port, and you can change it.

Programs like Lotus Notes use a range of port numbers which are configurable.

by nadelowesyou530

First, I graciously thank your quick response!

I am trying to determine what ports need to be open so we can setup correct firewall exemptions. Unfortunately, I am working from an all open perspective, where there are no security measures in place and a list of ports our software utilizes is not available.

I need to determine what ports need to be open so programs can access them externally from the network. If I understand your statement correctly, that would mean I only need to concentrate on ports that are not attributed to the loopback.

A few follow-up questions to your post:

1. Would this also count ports that are attributed to IP 0.0.0.0? or are ports that are attributed to IP 0.0.0.0 open to remote connectivity?

2. I am a little confused about is that these programs seem to say they monitor active ports. Will these ports be open/listening even if the application is not currently using them?

3. When you say an application has port numbers that can be changed, do you mean that the application changes them? Or do you mean a user has to manually change them? I just want to know if I have to look for applications randomly using different ports as I begin to create future port lists.

4. A firewall port question. If the port is a local port and it is not in the firewall exemption list, will the firewall block the port?

I thank you in advance for your response.

This discussion is closed to new replies.