Fix a firewall that blocks port
We'll identify the blocked port, add an allow rule (inbound or outbound), check the allow list—or tell you when to contact IT.
What you'll need
- The port number the app or service uses
- Admin access to the firewall (device or router)
- App path if using app-based rules
Step-by-step diagnostic
Quick triage — pick your path
Get started
Choose the option that matches what you see. You can jump straight to that section.
- Follow this guide Work through the full procedure from identifying the port to adding the rule.
- Identify the port You need to find which port is blocked.
- Add inbound rule Traffic is coming into your device.
- Add outbound rule Traffic is leaving your device.
- When to contact IT The firewall is managed or you cannot add rules.
Show full guide
Steps
Goal: Identify the blocked port, add an allow rule (inbound or outbound), and resolve the block.
- Confirm which app or service fails and check the error for a port number. Common ports: 3389 (RDP), 3074 (Xbox), 27015–27030 (Steam), 5060 (VoIP).
- Good: You know the port. Proceed to Determine direction.
- Bad: No port in the error—check if the app or service is running.
Identify the port
Goal: Find the port and determine inbound vs outbound.
- Inbound: Someone or something connects to your device (Remote Desktop, game hosting).
- Outbound: Your device connects out (game client, VPN, app to server).
- Check the app documentation or error message for the port and direction.
- Good: You know the port and direction. Proceed to Add inbound rule or Add outbound rule.
Add inbound rule
Goal: Allow incoming traffic on the port.
- Open the firewall (Windows: wf.msc; Mac: System Settings > Network > Firewall; router: 192.168.1.1).
- Add a new inbound rule: Port, protocol (TCP/UDP), port number, Action: Allow.
- On a router, add port forwarding to send the port to the correct device.
- Retest.
- Good: The app connects.
- Bad: Try adding the app to the allow list.
Add outbound rule
Goal: Allow outgoing traffic on the port.
- Add a new outbound rule: Port, protocol, port number, Action: Allow.
- Retest.
- Good: The app connects.
- Bad: Try adding the app to the allow list.
When to get help
Contact IT or the firewall vendor if:
- The firewall is managed by your organization.
- You cannot add rules.
- The block persists after adding the rule.
Provide the app name, port, and error message.
Verification
- The app or service connects without port or firewall errors.
- The allow rule appears in the firewall list.
- Port test from another device succeeds (for inbound).
Escalation ladder
Work from the device outward. Stop when the problem is fixed.
- Identify port Find the port the app or service uses.
- Inbound vs outbound Determine if traffic is incoming or outgoing.
- Add allow rule Add inbound or outbound allow rule for the port.
- Allow list Add the app to the firewall allow list if app-based.
- Router firewall Check port forwarding on the router if traffic is from outside.
- Contact IT Escalate if firewall is managed or rules cannot be added.
What to capture if you need help
Before calling support or posting for help, have these ready. It speeds everything up.
- App or service name
- Port number and protocol (TCP/UDP)
- Inbound or outbound
- Steps already tried
Does an app or service fail with a connection or port error?
Firewall blocks often show as connection refused, timeout, or port blocked.
You can change your answer later.
Is the traffic inbound (someone connects to you) or outbound (you connect out)?
Inbound: hosting, Remote Desktop, game server. Outbound: client apps, VPN, game client.
You can change your answer later.
Add inbound allow rule
Open firewall, add rule for the port, protocol (TCP/UDP), action Allow.
You can change your answer later.
Add outbound allow rule
Add rule for the port, protocol, action Allow.
You can change your answer later.
Add app to allow list
You can change your answer later.
Issue resolved
Issue may not be firewall
Contact IT or support
Reviewed by Blackbox Atlas
Frequently asked questions
- How do I know which port is blocked?
- Check the app or game documentation. Common ports: 3389 (RDP), 3074 (Xbox), 27015–27030 (Steam), 5060 (VoIP). You can also check the app error message or run a port test from another device.
- What is the difference between inbound and outbound rules?
- Inbound rules control traffic coming into the device (e.g. someone connecting to your PC). Outbound rules control traffic leaving the device (e.g. an app connecting to a server). Add the rule that matches the direction of the blocked traffic.
- Should I allow a port for all IPs?
- For home use, allowing a port for all IPs is common. For tighter security, restrict to specific IPs or subnets. Avoid opening ports you do not need.
Rate this guide
Was this helpful?
Thanks for your feedback.