To open ports on an AT&T router, go to http://192.168.1.254, enter the Device Access Code from the gateway sticker, choose Firewall then NAT/Gaming, create a custom service with the port and protocol, assign it to your device under Needed by Device, and save. AT&T warns that port forwarding can let others reach devices in your home, so open only the ports you need and close them when you finish.
Key takeaways
- Port forwarding on AT&T gateways lives under Firewall, then NAT/Gaming, at http://192.168.1.254.
- AT&T recommends one service entry per port, with the same number in the Global Port Range and Base Host Port.
- If a port stays closed, check the device assignment, the firewall, CGNAT and whether the app is actually listening.
You need an open port when a game, a media server or a camera must accept connections from the internet. On an AT&T router, that means manual port forwarding under Firewall, then NAT/Gaming. This guide follows AT&T's official steps for the BGW320 and BGW210, and it covers the fixes for ports that stay closed.
What does opening a port do?
Opening a port tells your AT&T gateway to send internet traffic on one numbered port to one device in your home. Without a rule, the gateway blocks that traffic by default.
Think of your gateway as a reception desk. Your home network shares one public address, and the gateway decides which device gets each incoming connection. A port forwarding rule is a written instruction: traffic on port 25565 goes to your Minecraft server, for example. AT&T calls this a service, and you create it under Firewall, then NAT/Gaming.
Ports are just numbers from 1 to 65535, and each app uses its own. AT&T's own guide gives port 80 as the example for web servers, and Minecraft Java uses TCP port 25565 while Minecraft Bedrock uses UDP port 19132. Always check your app's documentation for the exact port and protocol before you start, because guessing will not work.
| Method | What it does | Best for | Risk |
|---|---|---|---|
| NAT/Gaming port forwarding | Opens one port to one device | One game, server or camera | Low if you open only what you need |
| IP Passthrough | Gives your own router the public IP | Your own router behind AT&T | Medium: your router now guards the network |
| DMZ / DMZplus | Exposes one device to the internet | Last resort only | High: that device loses gateway protection |
| VPN with port forwarding | Routes traffic through a VPN | CGNAT or Internet Air users | Depends on the VPN provider |
What do you need before you start?
You need the Device Access Code from the sticker on your gateway, the port and protocol your app needs, and the device that should receive the traffic. Gather all three before you open the settings page.
Connect your computer or phone to the AT&T gateway by Wi-Fi or Ethernet, not through another router. If you have your own router behind the gateway, the gateway page may not load, and you will need to connect directly to the gateway first. Also check that the device you want to reach is turned on and connected to the same network.
Write down the port, protocol and device before you start. AT&T recommends one service entry per port rather than a range, and a clear service name such as Xbox Live or Minecraft Server will save you confusion later. If you are setting up a game console, check its network settings for the ports it needs first.
How do you open ports on an AT&T router?
Open http://192.168.1.254, enter the Device Access Code, choose Firewall then NAT/Gaming, create a custom service with your port and protocol, assign it to your device and save. These are AT&T's official steps for the BGW320 All-Fi Hub.
- Open a browser on a device connected to your gateway network and go to http://192.168.1.254.
- Select the Firewall tab and enter the Device Access Code from the sticker on your gateway.
- Select NAT/Gaming. If you see a warning, make sure port forwarding is enabled on your AT&T account first, then continue.
- Open the Service dropdown and pick your application. If it is not listed, select Custom Services.
- Enter a Service Name, then enter the port in Global Port Range. AT&T recommends one entry per port, with the same number in both fields.
- Enter the same port in Base Host Port, choose the Protocol (TCP, UDP or TCP/UDP) and select Add.
- Repeat for any other ports, then select Return to NAT/Gaming. Your new service will appear in the Applications list.
- Open the Needed by Device dropdown, choose the device name or IP address, select Add, wait for it to appear under Hosted Applications, then select Save.
This last step is the one most people miss: creating a service does not attach it to a device. Until you pick the device under Needed by Device and save, the port stays closed. After you save, restart the app or game and test the port from outside your network.
AT&T documents these steps on its official BGW320 support page, including the warning to use port forwarding with caution.
AT&T gives the same steps for the BGW320 and the older BGW210, with only small menu differences. Older gateways may call the same area Applications, Pinholes and DMZ instead of NAT/Gaming. The address http://192.168.1.254 and the Device Access Code work across these models, according to AT&T support and gateway guides.
Which ports do popular apps and games need?
Check your app's own documentation for its ports, because the same app can use different ports on different platforms. The examples below come from AT&T's guide and from gateway setup guides.
| App or service | Port | Protocol | Notes |
|---|---|---|---|
| Web server | 80 | TCP | AT&T's example port for web servers |
| Minecraft Java | 25565 | TCP | Default server port; change it in server.properties if needed |
| Minecraft Bedrock | 19132 | UDP | Default Bedrock port |
| Your app | Check docs | TCP or UDP | Never guess: use the port your app's documentation lists |
If your app lists several ports, create one service entry for each, as AT&T recommends. A range can open ports you did not intend to expose, and it makes troubleshooting harder when one port works and another does not. Name each service clearly so you can remove the right one later.
For game consoles, the console's own network test will tell you whether your NAT type has improved. If it still reports a strict NAT after forwarding, check that you forwarded the right ports for that console and that no second router is blocking traffic first. Our guide to securing your Wi-Fi covers the wider network settings that affect gaming and streaming.
Why is your port still closed after port forwarding?
The most common cause is forgetting to assign the service to a device under Needed by Device. The next most common causes are a device firewall, an app that is not listening, and CGNAT on AT&T Internet Air or 5G Home Internet.
- Check the assignment: open NAT/Gaming again and confirm your service appears under Hosted Applications for the right device.
- Check the device firewall: Windows Firewall, macOS firewall or a security app can block the port even when the gateway forwards it.
- Check the app is running and listening: a port checker will report closed if nothing on the device is accepting connections on that port.
- Check the IP address: if the device got a new local IP after a restart, the rule may point at the wrong device. Give the device a fixed address if your gateway supports it.
- Check for CGNAT: if your gateway's WAN address sits in the shared 100.64.0.0/10 range, or you use Internet Air, there is no inbound path and port forwarding cannot work. A VPN with port forwarding is the usual workaround.
- Restart the gateway and the device, then test again from outside your network, not from inside it.
Test with a port checker while the app is running, and test from a phone on mobile data rather than from your own Wi-Fi.
Testing from inside your own network can give a misleading result, because some gateways handle that traffic differently. If the port is still closed after these checks, remove the rule, recreate it step by step and watch for the warning that port forwarding must first be enabled on your account.
The NAT Checker AT&T guide matches each closed-port symptom to its fix, which is a useful second check if the steps above do not work.
Is port forwarding safe, and what should you avoid?
Port forwarding is safe only when you open the minimum you need and keep the exposed device updated. AT&T warns that it may allow others to access devices in your home without your knowledge, so treat every open port as a risk you have chosen.
- Open only the ports your app needs, and close the rule when you no longer need it
- Never forward a wide port range or put a device in the DMZ unless you understand the risk
- Keep the exposed app and device updated, and use strong, unique passwords
- Do not forward ports for remote desktop or admin panels without extra protection
- Check your rules every few months and remove the ones you no longer use
IP Passthrough is a useful alternative when you have your own router: it gives your router the public IP address, so your router handles port forwarding and UPnP instead of the AT&T gateway. Set Allocation Mode to Passthrough and Passthrough Mode to DHCPS-fixed, enter your router's MAC address, save and restart. That is a better choice than exposing one device directly, because your router still filters traffic.
If you only need remote access to your own files or cameras, consider a VPN into your home network instead of opening ports to the internet. A VPN adds a login step and encryption, while an open port is reachable by anyone who scans it. You can check what your network already exposes with our free what is my IP tool.
The bottom line
Open ports on an AT&T router at http://192.168.1.254 under Firewall, then NAT/Gaming, with one service per port and the device assigned under Needed by Device. Test from outside your network, and close rules you no longer need.
If a port stays closed, work through the checklist: assignment, device firewall, listening app, IP address and CGNAT. And if you use Internet Air or 5G Home Internet, port forwarding may not be possible at all.
For the rest of your home network, read our guide to securing your Wi-Fi.
You can also check your DNS settings with the free DNS lookup tool.
Frequently asked questions
What is the IP address for AT&T router settings?
The AT&T gateway settings page is at 192.168.1.254. Open it in a browser while you are connected to the gateway by Wi-Fi or Ethernet. If it does not load, you are probably connected through another router, so check your device's default gateway address.
What is the Device Access Code on an AT&T router?
The Device Access Code is printed on the sticker on your AT&T gateway, usually near the serial number. It is not your Wi-Fi password. You need it before you can change firewall and port forwarding settings.
Does AT&T support UPnP?
AT&T does not expose a UPnP toggle in its gateway settings, and its support pages only document manual port forwarding under Firewall, then NAT/Gaming. If a device needs UPnP, use manual port forwarding, or put your own router behind the gateway with IP Passthrough.
Why is my port still closed after port forwarding?
The most common causes are forgetting to assign the service to a device under Needed by Device, a firewall on the device blocking the port, the app not running, or CGNAT on AT&T Internet Air or 5G Home Internet. Check each one in order before you change anything else.
Is port forwarding safe?
Port forwarding is risky if you open ports you do not need, because it lets the internet reach a device in your home. Open only the ports your app needs, keep the app updated, use strong passwords and close the rule when you no longer need it.
What is IP Passthrough on an AT&T gateway?
IP Passthrough gives your own router the public IP address, so your router handles port forwarding and UPnP instead of the AT&T gateway. Set Allocation Mode to Passthrough and Passthrough Mode to DHCPS-fixed, enter your router's MAC address, save and restart.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against AT&T's official BGW320 support pages and the AT&T device-support port forwarding guide.
How we write and fact-check →