Updated on November 6, 2026
An open port lets a service receive network traffic. The risk depends on what service is listening and who can reach it. A file share used inside your home and a remote desktop service exposed to the internet need different protections.

Find out who can reach the port
- Only this computer. A service listening on
127.0.0.1or::1is available to apps on the same device. - Devices on your local network. A service can listen on your Wi-Fi or Ethernet address if the computer’s firewall allows it.
- The internet. An IPv4 port-forwarding rule can send incoming traffic through a router to a device. Router remote management, automatic UPnP mappings and IPv6 firewall rules can also affect what’s reachable.
On Windows, open PowerShell and run the following to see local TCP listeners. LocalAddress and LocalPort show where each one is listening. You can look up OwningProcess in Task Manager under Details. See Microsoft’s command reference.
Get-NetTCPConnection -State Listen | Select-Object LocalAddress, LocalPort, OwningProcess
Check your firewall and router rules separately to see what a device on another network can reach. For the router side, see our guide to checking open router ports.
What someone can do with a reachable service
Someone who reaches a service can try weak or reused passwords, look for a known software flaw, or use a feature the owner left available. First identify the app behind the port. These port numbers are common defaults.
| Common port | What to do |
|---|---|
| 3389 for Remote Desktop | Keep it off the public internet. For remote access, use a secured VPN or gateway with multifactor authentication. |
| 445 for Windows file sharing | Keep SMB shares on trusted networks and block inbound internet access. Microsoft’s SMB guidance |
| 443 for HTTPS | If you run a public website, keep the server and apps updated. Protect admin pages and accounts separately. |
Reduce exposure in a few steps
- Turn off services you no longer use. Check old port-forwarding and UPnP mappings in the router.
- Limit access to the devices or networks that need it. Review both IPv4 and IPv6 rules if your network uses both.
- Update the router and the exposed app. Use strong, unique credentials and multifactor authentication where available.
- Test the service again from the network that’s supposed to reach it. For internet-facing services, check from outside your home network as well.
Frequently asked questions
How can open ports allow hackers to gain access?
A reachable port lets someone communicate with the service behind it. What they can do next depends on that service’s permissions, passwords and software version.
Does a port listed as listening mean it’s public?
A listening port is ready to receive traffic at its local address. The computer’s firewall, router and network path determine who can reach it.
Which ports should I close on my home router?
Start with rules for apps or devices you no longer use. Keep services such as Windows file sharing local and use a secured remote access method when you need to connect from outside.