You might sometimes need to open a port to make applications work properly. You’ll need to know its number to do that, but how are you supposed to find it? It’s not as complicated as it might sound. Read on to find out how.
Paul Black
Jan 24, 2022 · 3 min read
Contents
A port number is a way of identifying a specific application or process over a network. Every device connecting to the internet uses ports so that different applications could establish connections simultaneously.
If you browse the web, download files and use a printer at the same time, all these operations use different ports. For example, File Transfer Protocol (FTP) data transfers use port number 20 while HTTPS uses 443. There are 65,535 ports in total, but not all of them are available for regular users.
While an IP address is attached to a device, port numbers are attributed to different processes and connections within that device. They are used to make these processes identifiable on the internet and help the receiving end on the web to identify the operation and take the right action. Check out our video on port numbers for a breakdown of their definition and function.
Port numbers are like extensions to your IP address. For example, your computer’s IP address is 192.168.11.1, while the file transfer protocol (FTP) port number is 20. Thus, the IP for an open FTP port would be 192.168.11.1:20. By seeing this address, the server will “understand” your request.
Port numbers have different numbers and types. Every different action has its own port so that they can all coexist under the same IP address:
Port numbers have different numbers and types. Every different action has its own port so that they can all coexist under the same IP address:
It allows you to have more control over your software. Because applications use specific ports, they should always be open for them to work properly. On the other hand, closing them can improve your security. If one of your apps can’t connect to the internet, you might want to check the relevant port and open or close it. You can also open a port on your router and assign it to any device or program by using port forwarding.
Firewalls can block some ports, so manually allowing them to bypass firewalls may be necessary.
To close the port, simply remove the rule.
It is very easy to open a port on Mac. Here's how:
To close the port, simply remove it from the list.
Port number | Description |
---|---|
20 | FTP (File Transfer Protocol) data transfer |
21 | FTP (File Transfer Protocol) command control |
22 | SSH (Secure Shell) |
23 | Telnet |
25 | SMTP (Simple Mail Transfer Protocol) |
53 | DNS (Domain Name System) |
67, 68 | DHCP (Dynamic Host Configuration Protocol) |
80 | HTTP (Hypertext Transfer Protocol) |
110 | POP3 (Post Office Protocol) |
119 | NNTP (Network News Transfer Protocol) |
123 | NTP (Network Time Protocol) |
143 | IMAP (Internet Message Access Protocol) |
161 | SNMP (Simple Network Management Protocol) |
194 | IRC (Internet Relay Chat) |
443 | HTTPS (Hypertext Transfer Protocol Secure) |
546, 547 | DHCPv6 (Dynamic Host Configuration Protocol version 6) |