How to find what is using a port on a Windows VPS

Print
  • 0

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.

Was this answer helpful?

Related Articles

« Back

Follow us on Social Media

Stay in the loop! Follow our social media accounts and stay up-to-date with the latest news, announcements, tips & tricks and behind-the-scenes insights!