How to Open a Port for an Android

By Ken Burnside

Setting up a port for Android to use is a router configuration issue, not an Android issue.
i Thomas Northcut/Photodisc/Getty Images

Firewall services are set up in a router as a security measure to block access to a specific port for connections via the Internet. When you encounter a blocked port with your Android device, you'll find that you have an Internet connection but a specific application isn't working while everything else is. Most Android apps will give an error saying "Unable to connect: Port #### blocked" where "Port #####" will have a specific number. There is no way to open a port in Android specifically; you'll need to adjust the router and assign the Android device a static IP address.

Configuring Your Router

Access the Search charm from the Windows Charms bar and enter "cmd" to pull up the Command Prompt.

Type "ipconfig /all" and press "Enter" to pull up information about your network. Record the IPv4 address, subnet mask, default gateway and DNS servers.

Write down the IP address listed for your IPv4 default gateway -- this is the IP address of your router. A typical router will use or Pick another IP address that has the same first three sets of numbers and a fourth number set that's at least 20 higher than the fourth set of the default gateway. For example, is 20 higher than This second IP address is the one you'll be assigning to your Android device.

Launch a Web browser and enter the default gateway address into the URL bar.

Enter your username and password for your router. If you don't remember the username and password, look up the defaults for your model of router and reset it.

Look for a menu that's labeled "Applications & Gaming," "Advanced," "Port Forwarding/Port Triggering" or "NAT/QoS" -- these are examples used by different router manufacturers, but you may need to do some exploring through menus.

Enter the port number you need opened. Most Android applications will state which port they couldn't access. Some common ports are 25565 for "Minecraft" and the range of 6881-6887 for a BitTorrent client. A longer list of commonly used ports is linked to in the Resources section.

Choose the protocol for this port; TCP is the most common and BitTorrent uses UDP. When in doubt, select "Both." There is a small performance hit for choosing "Both," but it's unlikely to affect device performance or download speeds.

Enter the static IP address you set aside for your Android device.

Click "Enable." For some routers, this button will say "Finished," "Done" or "Make These Changes."

Configuring Android for a Static IP

Tap "Settings," scroll down to "Wireless & Networks" and then "Wi-Fi settings."

Press and hold down on the name of the network you're connected to to bring up the context menu.

Select "Modify network."

Press the "IP settings" dropdown and change "DHCP" to "Static."

Enter in the IP address for your default gateway and the IP address you created earlier. If you have any IP addresses for DNS servers provided by your ISP you can enter them here; they'll mildly improve the performance of the connection but are not necessary.