If a game server says a port is already in use, another process is already listening on that port. Find the process before changing ports or closing random applications.

Check whether the port is TCP or UDP first. Many game servers use UDP for player traffic and TCP for admin tools or web interfaces.

 

Find the process using a TCP port

Open PowerShell as Administrator and run:

$connection = Get-NetTCPConnection -LocalPort 7777 -State Listen
Get-Process -Id $connection.OwningProcess

Windows VPS PowerShell showing the process using a listening port

 

Find the process using a UDP port

$endpoint = Get-NetUDPEndpoint -LocalPort 7777
Get-Process -Id $endpoint.OwningProcess

Replace 7777 with the port you are checking.

 

Stop the process only if safe

Stop-Process -Id PROCESS_ID

Do not stop processes you do not recognise. If the process belongs to another game server, database, Windows service, or remote access tool, stopping it can break that service.

 

Common reasons ports conflict

  • A second copy of the same game server is still running.
  • A previous server did not close cleanly.
  • Two servers were configured with the same port.
  • A helper, web server, or RCON tool is already using the port.

 

After freeing the port

  1. Start the game server or application again.
  2. Check the port is listening.
  3. Check Windows Firewall allows the port.
  4. Test from the game client or external tool.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Installing SteamCMD on your Windows VPS

SteamCMD is Valve's command-line tool for downloading and updating dedicated server files...

How to change your Windows VPS Administrator password

You can change the main Windows VPS login password from the VPS control panel. This is useful if...

How to open Windows Firewall ports on your VPS

Windows Firewall controls which inbound connections are allowed into your Windows VPS. If you...

How to open and use PowerShell on a Windows VPS

PowerShell is the main command-line tool for managing a Windows VPS. You can use it to install...

How to connect to a Windows VPS with Remote Desktop

Remote Desktop is the normal way to manage a Windows VPS. It opens a desktop session so you can...