Unblock a Blocked Port

By Pritam
Feb 12th, 2012
Unblock a Blocked PortLet’s talk about network ports, their requirement in computer world and all bits and bytes related to them.


A port number is basically an interface through which a sender machine communicates with the application on the receiver’s machine. Every application opens a port for the other machines to communicate with the application. 

Thus port numbers work like telephone extensions. Just as a business telephone switchboard can use a main phone number and assign each employee an extension number (like x100, x101, etc.), a computer has a main address and a set of port numbers to handle incoming and outgoing connections. So whenever a machine wants to exchange message with another machine it ought to do it via the application port.

BITS n Bytes of ports

A port is associated with an IP address of the host, as well as the type of protocol used for communication. Primarily transport layer protocols (such as TCP or UDP) use ports.

A port is identified for each address and a protocol by a 16-bit number, thus valid port numbers are from 0 to 65535(2^16).These port numbers are divided into three ranges:
  1. Well-known ports
  2. Registered ports
  3. Dynamic or private ports.
The well-known ports are those from 0 through 1023. For example:
  • 20 & 21File Transfer Protocol (FTP)
  • 22Secure Shell (SSH)
  • 23Telnet remote login service
  • 25Simple Mail Transfer Protocol (SMTP)
  • 53Domain Name System (DNS) service
  • 80Hypertext Transfer Protocol (HTTP) used in the World Wide Web
  • 110Post Office Protocol (POP3)
  • 119Network News Transfer Protocol (NNTP)
  • 143Internet Message Access Protocol (IMAP)
  • 161Simple Network Management Protocol (SNMP)
  • 443HTTP Secure (HTTPS)
The registered ports are those from 1024 through 49151 and the dynamic or private ports are from 49152 through 65535.

Unblock a blocked port:
Many times browsers block some ports to prevent attacks that exploit vulnerable services but as a developer you may be requiring those ports for development purposes. Here is a list of steps to unblock a port on a browser.
  1. Open Firefox and type about:config in the address bar.
  2. This will open up all the configuration settings for Firefox.
  3. Search for network.security.ports.banned.override key (using filter textbox).
  4. You need to create the key if it’s not present already.
  5. Right click anywhere in the Firefox window and select New and then String.
  6. Give following nameto the key : network.security.ports.banned.override
  7. In the value column add the port you want to unblock.
  1. Right click on the chrome icon.
  2. Go to Properties.
  3. There you will find a Target text field.
  4. The value there would be something like this, C:UsersYour_user_nameAppDataLocalGoogleChromeApplicationchrome.exe.
  5. Modify the above value as follows: C:UsersYour_user_nameAppDataLocalGoogleChromeApplicationchrome.exe –explicitly-allowed-ports=111,113.
In the above line 111, 113 are the ports you want to unblock.

This is how we can use the restricted ports. Do write in your queries in the comments section.

About the Author

- Co-Founder of IdleBrains, is software Engineer by profession with expertise in .NET technologies and data structures. An avid reader and writer, loves to keep himself well versed with new technologies. When not working can be found on Badminton court or chatting with friends. Among other hobbies, loves to listen old hindi numbers of Kishore Kumar and Mukesh.

Leave a Reply

Your email address will not be published. Required fields are marked *

facebook comments: