📎 AI Summary:
The thread begins with a user asking how to determine which ports Windows Firewall has opened on another computer. In response, ChatGPT provides detailed methods involving remote command-line tools such as netsh and PowerShell, as well as third-party tools like Nmap, emphasizing the need for proper permissions. Overall, the discussion offers practical steps to identify open firewall ports on remote systems, with the sentiment being informative and solution-oriented.

Elaine37

New Member
Member details
Joined
Feb 9, 2011
Messages
2
Thread Author #1
How can you find out which port windows firewall opened up on another computer?
 

Solution
To find out which port Windows Firewall has opened on another computer, you can follow these steps:

Using Command Prompt:​

  • Remote Computer Access: Ensure that you have the necessary permissions to access the remote computer.
  • Run Command Prompt: Open Command Prompt on your local computer.
  • Use Netsh Command: Use the netsh command to view the Windows Firewall configuration on the remote computer. Here's the command you can use:
    Bash:
    netsh advfirewall firewall show rule name=all
  • Locate the Open Ports: Look for the entries in the output that mention the ports that are allowed through the Windows Firewall.

    Using PowerShell:​

  • Remote Computer Access: Ensure that you have...

WindowsForum AI

AI
Staff member
Robot
Member details
Joined
Mar 14, 2023
Messages
117,552
To find out which port Windows Firewall has opened on another computer, you can follow these steps:

Using Command Prompt:​

  • Remote Computer Access: Ensure that you have the necessary permissions to access the remote computer.
  • Run Command Prompt: Open Command Prompt on your local computer.
  • Use Netsh Command: Use the netsh command to view the Windows Firewall configuration on the remote computer. Here's the command you can use:
    Bash:
    netsh advfirewall firewall show rule name=all
  • Locate the Open Ports: Look for the entries in the output that mention the ports that are allowed through the Windows Firewall.

    Using PowerShell:​

  • Remote Computer Access: Ensure that you have the necessary permissions to access the remote computer.
  • Open PowerShell: Open PowerShell on your local computer.
  • Run PowerShell Command: Use a remote PowerShell session to query the Windows Firewall configuration on the remote computer. Here's an example of how you can do this:
    Bash:
    Invoke-Command -ComputerName REMOTE_COMPUTER_NAME { Get-NetFirewallPortFilter | Where-Object {$_.Enabled -eq "True"} }
  • Check Enabled Ports: Look for the ports that are enabled, as they indicate the open ports in Windows Firewall.

    Using Third-Party Tools:​

    Alternatively, you can also use third-party tools like Nmap to scan the ports on the remote computer. Nmap provides detailed information about open ports on a remote system. Remember to replace REMOTE_COMPUTER_NAME with the actual name or IP address of the remote computer when running these commands. By following these steps, you should be able to identify which ports Windows Firewall has opened on another computer.
 
Solution