Your IP:
Your Location:
Your Status:
VeePN Blog VeePN Blog
  • Apps
    • All Apps
    • Windows
    • Mac
    • Linux
    • iOS
    • Android
    • Smart TV
    • Fire TV
    • Andriod TV
    • Apple TV
    • Router
    • Xbox
    • PlayStation
    • Chrome
    • Firefox
    • Edge
  • Features
    • All Features
    • VPN Servers
    • Double VPN
    • No Log VPN
    • Kill Switch
    • NetGuard
    • Extra Features
  • What is VPN?
    • How does a VPN work?
    • Access Content
    • Unblock Websites
    • VPN for Gaming
    • Streaming Media
    • Streaming Music
    • VPN for Netflix
    • Internet Privacy
    • Anonymous IP
    • Conceal Identity
    • Prevent Tracking
    • Save Money
    • Online Security
    • VPN Encryption
    • What’s my IP
    • Hide your IP
  • Pricing
  • Help
Get VeePN
Get VeePN
Digital identity Safe surfing Mobile security Wireless security Big brother
More categories
Good to know Online threats Entertainment Hackerwatch Cryptocurrency
Digital identity Safe surfing
More
Mobile security Wireless security Big brother Good to know Online threats Entertainment Hackerwatch Cryptocurrency
Digital identity Safe surfing Mobile security Wireless security Big brother Good to know Online threats Entertainment Hackerwatch Cryptocurrency
Search
Blog Safe surfing

What Is My Port Number and How To Find It?

VeePN Research Lab
March 9, 2023
Safe surfing
6 min read
What Is My Port Number and How To Find It?

Secure your digital life with VeePN

  • Privacy on any Wi-Fi
  • Unlimited bandwidth
  • One account, 10 devices
  • 2 500+ servers in 89 locations
Get VeePN Now
Quick Navigation
1. What is a port?
2. How do I find my port number?
3. How to open a port
4. FAQs

Has an application ever asked you to open a specific port to ensure proper operation? The port number is a way of identifying an application on a specific network, but before you can open the right port, you need to know your own port number. This guide will take you through how to find your port number.

Opening the right port is important for ensuring applications work correctly, but you also need to ensure you’re remaining safe online. A VPN like VeePN can provide that safety by encrypting your connection and hiding your computer’s presence online. With more than 50 locations and over 2,000 different servers, VeePN blocks bad actors from tracing your activity. 

What is a port?

In the most technical definition, a port is where a connection both starts and ends. Your computer’s operating system manages the port, and each port is associated with a different application. For example, your email will be managed by a separate port than a multiplayer round of Fortnite. 

What is my port number?

Your port number is a form of identification. Depending on the server and application, your port number lets the receiving server know where the message came from. There are 65,535 ports for each IP address, so your port number could be one of many.

Why do I need to know my port number?

Your port number plays a large role in troubleshooting bugs and issues with your machine. You need to know your port number to configure your firewall and filter out unwanted IP addresses. If you know your port number (and the number of an incoming message), you can block out unwanted emails, web pages, and more. Your port number is vital to your online security. As long as you know it, you have a much finer level of control over your security.

What’s the difference between a UDP and a TCP port?

There are two main types of ports: UDP and TCP. TCP is a connection-focused protocol, which means it needs an established connection before it can transfer data – and in theory, should close this connection once the transfer completes. UDP doesn’t require a connection, and therefore has no regulations on when it opens, operates, or terminates a connection. 

How do I find my port number?

If you’re trying to find the exact reason an error keeps occurring or you just want to improve your online security, there are different approaches depending on your operating system.

How to find your port number on Windows

You need to use the command prompt to find your port number on Windows.

Open Command Promt
  1. Enter netstat -a. Note that the space between the hyphen and the A is essential
Type netstat -a
  1.  The Command Prompt will list out every port number available to you, as well as its type (TCP or UDP) 
The results are your port numbers

How to find your port number on Mac

Finding your port numbers on Mac is similar to Windows, except that you use the Terminal instead of the Command Prompt.

  1. Open Terminal
Open Terminal
  1. Type in netstat -a | grep -i “listen”
Type netstat -a | grep -i "listen"

How do I find the port number of a specific IP address?

Finding the port number of a specific IP address is as simple as finding your IP addresses and sifting through the results. The port number is shown after the IP address, separated by a series of characters that look like [::]:

  1. Open the Command Prompt. (Or perform the Mac equivalent.)
Open Command Prompt
  1. Enter netstat -a to view the list of IP addresses in use 
Type netstat -a
  1. Look at the list of IP addresses, then look just to the right of them 
Look to the right of the listed IP addresses to find the port

Common port numbers

There are a lot of potential port numbers, but you don’t need to memorize all 65,000+ of them. You just need to know some of the most common ports and what their primary use is.

  • 20 – File Transfer Protocol transfer
  • 21 – File Transfer Protocol command control
  • 22 – Secure Shell (SSH)
  • 25 – Email routing through Simple Mail Transfer Protocol (SMTP)
  • 42 – Internet Name Service
  • 53 – Domain Name System (or DNS) service
  • 80 – Hyper Text Transfer Protocol (HTTP) on the web
  • 194 – Internet Relay Chat (IRC)
  • 443 – HTTP Secure (HTTPS) over TLS or SSL.

How to open a port

In many instances, ports are left closed for security purposes. They are only opened when needed by an ongoing service or application; however, sometimes a glitch prevents the port from opening as it should. If this happens, you will need to manually open the port to ensure proper operation of the application.

How to open a port on Windows 10

You can open ports on Windows 10 through the use of your Control Panel and Windows Defender Firewall.

  1. Open Control Panel
Open Control Panel
  1. Go to System and Security > Windows Defender Firewall
Access your Windows Defender Firewall settings
  1. Select Advanced Settings
Click Inbound Rules
  1. Select Inbound Rules
Click New Rule
  1. Select New Rule > Port
  2. Select Protocol and Ports
Select Port
  1. Select whether the port is TCP or UDP, then enter the port number into Specific local ports. After this, select Next
Select Protocol and Ports
  1. Select Allow the connection and click Next
Select Allow the connection and click Next
  1. Select what networks this rule applies to and click Next
Choose when the rule applies
  1. Name the rule, give it a description, and select Finish
Name the rule and finish

How to open a port on Mac

You can use System Prefernces to open a port on your Mac. 

  1. Open System Preferences
Open System Preferences
  1. Navigate to Security & Privacy > Firewall > Firewall Options…
Access your Firewall Options
  1. Select the Plus sign
Click the Plus sign to make open the port
  1. Select and application and then click Add
  1. Make sure Allow incoming connections is on
Make sure incoming connections are allowed
  1. Select OK

How do I know if I have any open ports?

If you’re on Windows, there’s an easy tool in the command prompt to show you any open ports. 

  1. Open Command Prompt
  2. Type in Netstat -ab
Type Netstat -ab to view all open ports

Any ports that appear on the list are open ports. 

FAQs

What is an IP address?

An IP address stands for Internet Protocol address, and is a numerical designation that represents a device on a network.

What’s the difference between a port number and an IP address?

Although both port numbers and IP addresses are used to designate devices, they represent different aspects of a connection. The port number specifies where data originates in a specific IP address, and is thus tacked on to the end of an IP address and separated by double colons.

What is a port scanner?

A port scanner is an application that looks for open ports on a server. These tools are often used for penetration testing to improve security, but can often be used for more malicious purposes. 

Knowledge is power, VeePN is freedom
Get VeePN Now
30-day money-back guarantee
Keep your personal data private.
Protect yourself with VeePN
Get VeePN Now Learn More
Written by VeePN Research Lab VeePN Research Lab is dedicated to provide you latest posts about internet security and privacy.
Related Posts
What Is Online Privacy: Definition, Tips, Issues
What Is Online Privacy: Definition, Tips, Issues
Digital identity 14 min read

What Is Online Privacy: Definition, Tips, Issues

Do you really care about your online privacy? If the answer is “not so much,” you may just be unaware of all those snoopers, hackers, and other third parties trying to collect and compromise your personal data on the web – maybe even at this very moment. So read along to learn what Internet privacy is and how to enhance it.

VeePN Research Lab
March 23
How to Fix “ChatGPT Is at Capacity Right Now” Error With a VPN (And Other Methods)
How to Fix “ChatGPT Is at Capacity Right Now” Error With a VPN (And Other Methods)
Good to know 9 min read

How to Fix “ChatGPT Is at Capacity Right Now” Error With a VPN (And Other Methods)

Looks like you tried to use ChatGPT and got an error message saying “ChatGPT is at capacity right now”, huh? Welcome to the team then. This error means that there are too many requests, and ChatGPT is temporarily unable to handle any new ones. But that doesn’t mean all fun is lost — we know some workarounds!

VeePN Research Lab
March 22
VPN by Google One: Is It Better Than Other VPN Services or Not?
VPN by Google One: Is It Better Than Other VPN Services or Not?
Safe surfing 8 min read

VPN by Google One: Is It Better Than Other VPN Services or Not?

Google and privacy. An oxymoron, knowing it’s well, Google? Maybe. Still, it’s making efforts to expand its VPN footprint. Recently Google One VPN became available for all its Google One cloud-storage subscribers. It’s also available for all major operating systems — Android, iOS, Windows, and Mac. But is this fledgling VPN a solid alternative to some experienced providers? Let’s find out.

VeePN Research Lab
March 21
© 2023 VeePN. All Rights Reserved.