Find out which ports are occupied

This page describes how to check if some port is occupied on MS Windows. YSoft SafeQ requires various ports to be available and occupying required ports by third party applications may lead to various issues (e.g. failure during installation)

Netstat

It is possible to use windows build-in application netstat to display all occupied ports.

Example:

  1. run the command-line as an administrator

  2. launch command:

    netstat -abno > ports.txt
    
  3. output from the command is written to ports.txt with content like this:

    Proto  Local Address          Foreign Address        State           PID  
    TCP    0.0.0.0:25             0.0.0.0:0              LISTENING       2412 [hMailServer.exe]
    
  4. output means the port 25 is occupied by application hMailServer.exe

  5. the following command would give the same info:

    netstat -abno | findstr ":25"
    

Task Manager

The list of occupied ports is available also in Task Manager -> tab Performance -> button "Open Resource Monitor" -> tab Network -> section Listening Ports

image.png?api=v2

How to prevent Y Soft SafeQ from listening on a port

For example, to disable a binding to port 21 proceed as follows:

  1. Log in as administrator to the YSoft SafeQ web interface

  2. Open the System menu

  3. Change view to Expert

  4. Find the settings for port you want to disable, for example "ftp-port"

  5. Change value to 0

  6. Save the settings

  7. Restart relevant YSoft SafeQ services

To enable the port again, fill in the port number. You can use the "Revert to default value" link to restore the original settings. Then restart the services.

image-20260128-080800.png