Specific ports for other apps to use already in use

Jan Schl 0 Reputation points
2025-01-02T05:51:43.47+00:00

Hello,

a .jar i want to use won't start a HTTP server because at least one port is already in use and tells me to "Make sure no other process is using port 80 and try again".

Furthermore, the trouble shooting guide states that i have to "Make sure that no other programs are using the ports 80, 53, 442 and 29900." If possible, i want to reassign ports to programs/services using those ports

I'm using Microsoft Windows 11 Pro (latest updates installed). If you need further information, please just ask.

I am adding the screenshot of the output (the same is prompted in cmd).f8b71442-8a4e-4c84-a221-2f5c72f78926

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,503 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,755 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daisy Zhou 28,156 Reputation points Microsoft Vendor
    2025-01-03T08:01:21.1733333+00:00

    Hello

    Thank you for posting in Q&A forum.

    You could follow these steps:

    1. Identify Programs Using the Ports:

    • Open Command Prompt as an administrator.

    • Use the netstat command to check which programs are using the ports:

    netstat -aon | findstr :80

    netstat -aon | findstr :53

    netstat -aon | findstr :442

    netstat -aon | findstr :29900

    • Note the Process IDs (PIDs) of the programs using these ports.

    1. Find Corresponding Processes:

    • Open Task Manager (Ctrl + Shift + Esc).

    • Go to the Details tab.

    • Match the PIDs from the netstat output to the processes listed in Task Manager.

    1. Reassign Ports:

    • For each identified process, you need to change the port configuration. This process varies depending on the application:

    • Web Servers (e.g., Apache, Nginx): Modify the configuration files (e.g., httpd.conf for Apache) to change the listening port.

    • DNS Services: Update the configuration files to change the port from 53 to another port.

    • Custom Applications: Refer to the application's documentation to find how to change the listening port.

    1. Restart Services:

    • After changing the port configurations, restart the affected services to apply the changes.

    1. Update Firewall Rules:

    • Ensure that your firewall rules are updated to allow traffic on the new ports.

    1. Verify Changes:

    • Use the netstat command again to verify that the ports have been reassigned and are no longer in use by the original programs.

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.