Checking Available Local Ports

Last Updated : Jan 22, 2021 |
Prolog information
For an RDP connection via COM, Proxytunnel needs to be associated with an unused IP port on the PC. The port should not be in use by any other application.
The process below can be used to list which ports the PC is currently using in order to select a free port.
Before you begin
  1. Access the Windows command line.
    1. Right-click on the start icon and select Run.
    2. Enter cmd and click Open.
    3. The Command Prompt window is opened.
  2. Enter netstat -an to see a list of ports currently being used by the PC.
    ADDITIONAL INFORMATION:
    • To have the list sent to a text file, enter the command netstat -an > c:\temp\ports.txt, adjusting the file path to match an existing folder.
  3. Once you think you have identified the local port you want to use, enter netstat -ano | find ":<free-port-on-local-host>". If the port is in use, details of the usage are displayed, otherwise the results are blank.
Next steps