Solution
This error occurs because the NI Web Server does not have permission to use the specified port, or another process is already using it. This error can be resolved in two ways:
- Identifying and stopping the process that is already using the specified port.
- Changing the server's HTTP port.
Depending on your preference, follow the relevant section below.
Identify the Process Using the Port
- From the Start Menu, search for "Command Prompt", right-click it and select Run as Administrator.
- Enter netstat -aon | findstr :<port> where <port> is the port named the error.
- This generates a list of processes using the port specified.
- The example image below is for the default HTTP port 80.
- Pay attention to the right-most column, which lists the Process ID (pid).
- Open Task Manager. Click More Details if a detailed view is not already visible.
- On the Processes tab, right-click any column title and ensure that PID is enabled.
- Scan through the PIDs for each process (using the Command Prompt results as a reference for processes using the NI Web Server port).
- Once identified, kill the process that is using the required NI Web Server port.
Change the NI Web Server HTTP Port
- Open the NI Web Server Configuration application.
- Select the HTTPS tab.
- Change the port under Server HTTP Port.
- Click Apply and Restart.