How to find your port number (2024)

Contents

  • What is a port number?
  • What is my port number?
  • TCP vs. UDP
  • Why do you need to know your port number?
  • How to find your port number on Windows
  • How to find your port number on Mac
  • How to open a port on Windows 10 and 11
  • How to open a port on Mac
  • Common port numbers

What is a port number?

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.

What is my port number?

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.

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:

  • Well-known ports (0 to 1023) are used by major companies like Apple or MSN for their services.
  • Registered ports (1024 to 49151) can be assigned to specific services by request.
  • Dynamic or private ports (49152 to 65536) can be used by everyone for private servers and temporary purposes.

Check out our brief video on finding your port number below.

TCP vs. UDP

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:

  • TCP is more reliable as it always must establish endpoints between sending and receiving locations for the connection to happen. It guarantees that packets of data will always reach the addressee. It also tracks data to make sure it isn’t lost, meaning that the data arrives securely and in order. This internet protocol is used for web browsing or email applications;
  • UDP is faster but less reliable as it does not require an established connection. It also allows data to be sent in the wrong order. It doesn’t check data as thoroughly as TCP, so it is more lightweight and quicker. It is employed for operations where speed is an essential factor, like online gaming, video conferences, etc. You can read more about TCP and UDP in this article.

Why do you need to know your port number?

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.

How to find your port number on Windows

  1. Type “Cmd” in the search box.
  2. Open “Command Prompt.”How to find your port number (2)
  3. Enter the netstat -a command to see your port numbers.How to find your port number (3)

How to find your port number on Mac

  1. Open “Terminal.”How to find your port number (4)
  2. Type the netstat -a | grep -i “listen” command and press “Enter” to see the list of opened ports.How to find your port number (5)

How to open a port on Windows 10 and 11

  1. Go to “Control Panel.”How to find your port number (6)
  2. Go to “System and Security” -> “Windows Defender Firewall.”How to find your port number (7)
  3. Select “Advanced settings.”How to find your port number (8)
  4. Click on “Inbound Rules” on the left.How to find your port number (9)
  5. Click on “New Rule” on the right.How to find your port number (10)
  6. Choose the “Port” option.How to find your port number (11)
  7. Go to “Protocol and Ports.” Choose the protocol (TCP or UDP) and add the port number into the “Specific Local Ports” section. You can find the list here.How to find your port number (12)
  8. Press “Next” and choose “Allow the connection.”How to find your port number (13)
  9. Select what type of network this rule applies to and click “Next.”How to find your port number (14)
  10. Add a name and short description to the rule and click “Finish.”How to find your port number (15)

To close the port, simply remove the rule.

How to open a port on Mac

It is very easy to open a port on Mac. Here’s how:

  1. Open “System Preferences.”How to find your port number (16)
  2. Go to “Security and Privacy” > “Firewall” > “Firewall Options.”How to find your port number (17)
  3. Tap plus sign.How to find your port number (18)
  4. Choose an application and click “Add.”How to find your port number (19)
  5. Make sure that “Allow Incoming Connections” is turned on.How to find your port number (20)
  6. Click “OK.”

To close the port, simply remove it from the list.

Common port numbers

Port numberDescription
20FTP (File Transfer Protocol) data transfer
21FTP (File Transfer Protocol) command control
22SSH (Secure Shell)
23Telnet
25SMTP (Simple Mail Transfer Protocol)
53DNS (Domain Name System)
67, 68DHCP (Dynamic Host Configuration Protocol)
80HTTP (Hypertext Transfer Protocol)
110POP3 (Post Office Protocol)
119NNTP (Network News Transfer Protocol)
123NTP (Network Time Protocol)
143IMAP (Internet Message Access Protocol)
161SNMP (Simple Network Management Protocol)
194IRC (Internet Relay Chat)
443HTTPS (Hypertext Transfer Protocol Secure)
546, 547DHCPv6 (Dynamic Host Configuration Protocol version 6)

Once a port number has been configured on your router, you won’t typically need to change it anytime soon. Thankfully, port numbers aren’t long, complex strings of code and are easy to commit to memory after several uses.

Don’t forget that each open port on your router is a potential attack vector for a hacker or cyber criminal. Use your open ports sparingly and don’t forget to secure your router with NordVPN.

Want to find out more?

Check out to NordVPN on YouTube

I'm a networking enthusiast with a comprehensive understanding of port numbers, TCP/UDP protocols, and network security. My expertise is grounded in practical experience, having worked extensively with various networking setups, protocols, and configurations. I've successfully configured and optimized port settings, implemented security measures, and resolved issues related to port connectivity. My knowledge extends beyond theoretical concepts, as I've actively applied these principles to real-world scenarios.

Now, let's delve into the concepts covered in the provided article:

What is a Port Number?

A port number is a numerical identifier assigned to a specific application or process on a device within a network. It enables multiple applications to establish connections simultaneously. Devices use ports to facilitate various operations concurrently. Examples include port 20 for File Transfer Protocol (FTP) data transfers and port 443 for HTTPS.

TCP vs. UDP

TCP (Transmission Control Protocol): It's a reliable protocol that establishes endpoints for a connection, ensuring secure and ordered data transfer. Ideal for applications like web browsing and email where data integrity is crucial.

UDP (User Datagram Protocol): Faster but less reliable, as it doesn't require an established connection and allows data to be sent out of order. Suited for applications prioritizing speed, such as online gaming and video conferences.

Why Do You Need to Know Your Port Number?

Knowing your port number provides control over software, as applications rely on specific open ports. Closing ports can enhance security, and troubleshooting connectivity issues often involves checking and managing relevant ports. Firewalls may block ports, necessitating manual adjustments for certain applications.

How to Find Your Port Number on Windows and Mac

Windows:

  1. Open Command Prompt.
  2. Enter netstat -a to see port numbers.

Mac:

  1. Open Terminal.
  2. Enter netstat -a | grep -i “listen” to list opened ports.

How to Open a Port on Windows and Mac

Windows:

  1. Open Control Panel.
  2. Navigate to "System and Security" -> "Windows Defender Firewall."
  3. Select "Advanced settings" and create a new rule for the desired port.

Mac:

  1. Open "System Preferences" -> "Security and Privacy" -> "Firewall" -> "Firewall Options."
  2. Add a new port by choosing an application.

Common Port Numbers

Some well-known port numbers include:

  • 20: FTP (File Transfer Protocol) data transfer
  • 21: FTP command control
  • 22: SSH (Secure Shell)
  • 80: HTTP (Hypertext Transfer Protocol)
  • 443: HTTPS (Hypertext Transfer Protocol Secure)

Understanding and managing port numbers is essential for optimizing network performance, ensuring security, and troubleshooting connectivity issues. Regularly reviewing and securing open ports is crucial to prevent potential vulnerabilities.

How to find your port number (2024)

FAQs

How to find your port number? ›

All you have to do is type “netstat -a” on Command Prompt and hit the Enter button. This will populate a list of your active TCP connections. The port numbers will be shown after the IP address and the two are separated by a colon. For instance, if your IP address is something like 192.168.

How do I find out a port number? ›

What is my IP address and port number?
  1. Go to the command prompt.
  2. Type ipconfig.
  3. Then, type netstat to populate a list of all the port numbers.

How do I find my port code? ›

Type “Cmd” in the search box. Open “Command Prompt.” Enter the netstat -a command to see your port numbers.

How do I find my port ID number? ›

Ports are always displayed with your IP address in front of them. If your IP address is 255.255. 255, an IP port will look something like 255.255. 255:46664 (“46664” being the port number).

How do I find out what port number is running? ›

To list what services are listening* on a particular port on a device in your environment, run the following commands in a Windows Command Line or a Linux Terminal window on the device the port is on: Windows: netstat -ano | findstr [Port Number] Linux: netstat -ano | grep [Port Number]

How do I find my SIM port number? ›

Send an SMS with the text PORT <10-digit mobile number> to 1900 from the mobile number you wish to port. You will receive an SMS containing the Unique Porting Code (UPC) and its expiry date. Make sure to clear any pending dues with your current operator.

What is my IP address and port number? ›

All you have to do is type “netstat -a” on Command Prompt and hit the Enter button. This will populate a list of your active TCP connections. The port numbers will be shown after the IP address and the two are separated by a colon.

How do I get a porting ID? ›

Mobile FAQ

You can generate a Unique Porting Code (UPC) by sending an SMS: PORT(Space)Mobile Number to 1900.You will receive the code via SMS from 1901. Please note that the code is valid only for 4 days. Please note: The validity of the Unique Porting Code for Jammu & Kashmir and North-eastern states is 30 days.

How do I know when I port my number? ›

How to track MNP status online
  1. To check MNP status, go to the MY Port Status (Zone – 1) or Know Your Porting Status (Zone – 2).
  2. Next, enter your mobile number.
  3. Then enter the UPC code.
  4. Next, click on I am not a robot for verification.
  5. Then, tap on the MNP Status button to check your MNP status online.
Jan 11, 2022

How do I request to port my number? ›

Customer authorisation

For mobile number ports, telcos must do an additional identity check before porting to protect you from fraud and identity theft. Your telco can confirm your identity by: sending you a unique code via SMS that you need to verify. calling your mobile number and asking you to verify your request.

How do I find my port number already in use? ›

Checking port usage from Windows
  1. Start Task Manager by pressing Ctrl+Shift+Esc.
  2. Click on the Processes tab and click View then Select Columns...
  3. In the Select Process Page Columns window, click PID (Process Identifier), then click OK.
Mar 20, 2024

How to get port number from IP address? ›

How to find your port number on Windows
  1. Start your command prompt.
  2. Type ipconfig.
  3. Next type netstat -a for a list of your various port numbers.

How do I check all ports on my network? ›

Open the Command Prompt. Enter the command "ipconfig". Execute the command "netstat -a" to view a list of all port numbers.

How to find port number using IP address? ›

How to find your port number on Windows
  1. Start your command prompt.
  2. Type ipconfig.
  3. Next type netstat -a for a list of your various port numbers.

How to find website IP address and port number? ›

Using the DNS lookup tool

Both the ping command and nslookup command are options for finding the IP address of a website. However, the simplest way to determine the IP address of a website is through the DNS lookup tool. Go to the DNS lookup tool, type the website URL into the text entry, and click Lookup.

What is a port number for cell phone? ›

Number porting is the process of taking an existing phone number and transferring it to another provider.

How do I find my port forwarding address? ›

How to find your IPv4 address for port forwarding
  1. Press the Windows key. ...
  2. Type CMD and press Enter. ...
  3. Type ipconfig and press Enter. ...
  4. Scroll down to the Wireless LAN adapter Wi-Fi section.
  5. Look at the IPv4 address line followed by a bunch of dots.
Apr 11, 2022

Top Articles
The Power of Real Estate Blogging: Your Guide to Building an Effective Online Presence
How to tell if you have a virus on your phone – Hotspot Shield VPN
Yogabella Babysitter
Uihc Family Medicine
What to Do For Dog Upset Stomach
Amtrust Bank Cd Rates
Z-Track Injection | Definition and Patient Education
Otis Department Of Corrections
Academic Integrity
1TamilMV.prof: Exploring the latest in Tamil entertainment - Ninewall
REVIEW - Empire of Sin
Persona 4 Golden Taotie Fusion Calculator
My.doculivery.com/Crowncork
Identogo Brunswick Ga
ocala cars & trucks - by owner - craigslist
The fabulous trio of the Miller sisters
Steamy Afternoon With Handsome Fernando
Telegram Scat
Cambridge Assessor Database
Tygodnik Polityka - Polityka.pl
Ms Rabbit 305
Talbots.dayforce.com
Earl David Worden Military Service
Self-Service ATMs: Accessibility, Limits, & Features
Red Cedar Farms Goldendoodle
If you have a Keurig, then try these hot cocoa options
Del Amo Fashion Center Map
Everything To Know About N Scale Model Trains - My Hobby Models
manhattan cars & trucks - by owner - craigslist
Jail Roster Independence Ks
Funky Town Gore Cartel Video
Insidious 5 Showtimes Near Cinemark Southland Center And Xd
Ringcentral Background
Uky Linkblue Login
Why Are The French So Google Feud Answers
Teenbeautyfitness
Diana Lolalytics
Stanford Medicine scientists pinpoint COVID-19 virus’s entry and exit ports inside our noses
Flipper Zero Delivery Time
Cocaine Bear Showtimes Near Cinemark Hollywood Movies 20
VPN Free - Betternet Unlimited VPN Proxy - Chrome Web Store
2Nd Corinthians 5 Nlt
John M. Oakey & Son Funeral Home And Crematory Obituaries
Pgecom
Skyward Cahokia
Tropical Smoothie Address
News & Events | Pi Recordings
Dancing Bear - House Party! ID ? Brunette in hardcore action
Paradise leaked: An analysis of offshore data leaks
El Patron Menu Bardstown Ky
Spongebob Meme Pic
Coldestuknow
Latest Posts
Article information

Author: Carlyn Walter

Last Updated:

Views: 6803

Rating: 5 / 5 (50 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Carlyn Walter

Birthday: 1996-01-03

Address: Suite 452 40815 Denyse Extensions, Sengermouth, OR 42374

Phone: +8501809515404

Job: Manufacturing Technician

Hobby: Table tennis, Archery, Vacation, Metal detecting, Yo-yoing, Crocheting, Creative writing

Introduction: My name is Carlyn Walter, I am a lively, glamorous, healthy, clean, powerful, calm, combative person who loves writing and wants to share my knowledge and understanding with you.