If you need to configure the Windows Firewall to allow incoming connections on specific ports, here's how you can do it:

  1. Open Windows Defender Firewall Settings:

    • Press Win + R to open the search bar.
    • Type "wf.msc" and hit enter.
    • In the left pane, click on "Advanced settings." This will open the Windows Defender Firewall with Advanced Security window.
  2. Create Inbound Rule:

    • In the left pane, click on "Inbound Rules."
    • In the right pane, click on "New Rule..." to open the New Inbound Rule Wizard.
  3. Select Rule Type:

    • Choose "Port" and click Next.
  4. Specify Port:

    • Choose "TCP" and enter the port(s) in the "Specific local ports" field.
    • Click Next.
  5. Choose Action:

    • Select "Allow the connection" and click Next.
  6. Choose Profile:

    • Click Next.
  7. Name and Finish:

    • Enter a name for your rule, e.g., "Web Server - TCP."
    • Click Finish.
  8. Repeat for UDP (if needed):

    • Follow the same steps, but this time choose "UDP" in step 4.
  9. Verify Rules:

    • In the Windows Defender Firewall with Advanced Security window, ensure that your new inbound rules for TCP and UDP on the port(s) are listed.
هل كانت المقالة مفيدة ؟ 184 أعضاء وجدوا هذه المقالة مفيدة (342 التصويتات)