Share via

HOW TO DO PORT FORWARDING OR PORT OPENING IN WINDOWS 10 PRO??

Anonymous
2025-04-19T12:22:57+00:00

i tried opening a port in windows 10 pro from windows defender settings creating a inbound rule in it, also forwarded the port on my router. but when checked through a port checker it shows that port is still closed. please help me with a proper solution in it.

Windows for home | Windows 10 | Internet and connectivity

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Siva Shankar 10,960 Reputation points
    2025-04-19T16:20:05+00:00

    Hello ,

    I’m here to help you in resolving your issue

    To successfully open (forward) a port on Windows 10 Pro, both router and Windows settings must be configured correctly:

    Assign a Static IP to Your PC :

    1. Press Win + R > type ncpa.cpl > Enter.
    2. Right-click your network > Properties > IPv4 . Properties.
    3. Set a manual IP (e.g. 192.168.1.100), subnet: 255.255.255.0, gateway: your router IP.
    4. Set DNS: 8.8.8.8 and 8.8.4.4.

    Port Forward on Your Router :

    1. Go to your router's IP (usually 192.168.0.1 or 192.168.1.1) in a browser.
    2. Login > Look for Port Forwarding / Virtual Server.
    3. Add a new rule:

    a. Port: (e.g., 25565)

    b. Protocol: TCP / UDP (or both)

    c. IP: your PC’s static IP (192.168.1.100)

    d. Status: Enabled > Save & Reboot Router

    Allow the Port in Windows Firewall :

    1. Go to Control Panel > Windows Defender Firewall > Advanced settings
    2. Click Inbound Rules > New Rule

    a. Type: Port

    b. Protocol: TCP or UDP (or both)

    c. Port: enter the port (e.g., 25565)

    d. Allow the connection > All profiles > Name it > Finish.

    1. Repeat for Outbound Rules just in case.

    After trying above steps, please reach out to me if you have any doubts or issues

    1 person found this answer helpful.
    0 comments No comments
  2. Siva Shankar 10,960 Reputation points
    2025-04-22T12:18:49+00:00

    Since your IP and port forwarding are matching, but the port still shows closed, it means the PC isn’t listening on that port or something else external is blocking.

    Check if Windows is really listening on the port

    1. Open command prompt as Administrator and type:

    netstat -aon | findstr :YOURPORT

    1. If it shows nothing, it means no app is listening.

    If it shows LISTENING, copy the PID (Process ID) from the right-most column.

    Then type :

    tasklist | findstr PIDNUMBER

    1. Replace PIDNUMBER with the PID you got.

    This will tell you what program is using the port.

    If no program is listening, the port is invisible even if you forward it.

    If that doesn’t work, perform Windows Defender Firewall Full Reset :

    1. Open command as Administrator.
    2. Run:

    netsh advfirewall reset

    1. Then recreate your port opening Inbound/Outbound rules from scratch.
    0 comments No comments
  3. Anonymous
    2025-04-22T03:08:58+00:00

    The IP address is matching that of the system. Also when i add the mac of the system(which shows when connected to router) in the router the IP comes automatically which is perfect. There is no third party antivirus or firewall installed in PC. What else i can do in this matter?

    0 comments No comments
  4. Siva Shankar 10,960 Reputation points
    2025-04-21T19:12:38+00:00

    Thanks for your response.

    Ensure that the local IP address you've assigned for port forwarding matches the one currently assigned to your computer. IP addresses can change upon reboot unless you've set a static IP. To check your current IP:

    Press Win + R, type cmd, and press Enter.

    In the Command Prompt, type ipconfig and press Enter.

    Note the IPv4 Address under your active network connection.

    Update your router's port forwarding settings with this IP if it differs from the one previously configured.

    Some antivirus programs or third-party firewalls can block incoming connections. Temporarily disable them to test if they're causing the issue. Remember to re-enable them after testing.

    0 comments No comments
  5. Anonymous
    2025-04-21T15:23:29+00:00

    I did the above mentioned steps. But when checking via online port checker service it does not show open. Also check it via cmd - netstat -aon also it does not show my port open. I am trying to open port 5001 to use data from my computer for a application. Please suggest some way out for this

    0 comments No comments