Your IP:
Your Location:
Your Status:
VeePN Blog Blog
  • VPN Apps
    • Desktop / Mobile
    • Windows
    • MacOS
    • Linux
    • iOS
    • Android
    • Devises
    • Smart TV
    • Fire TV
    • Android TV
    • Apple TV
    • Router
    • Gaming
    • Xbox
    • PlayStation
    • Extension
    • Chrome
    • Firefox
    • Edge
    See All Apps
  • VeePN Antivirus
  • Features
    • VPN Servers
    • Double VPN
    • No Log VPN
    • Kill Switch
    • NetGuard
    • Extra Features
    See All Features
  • What Is a VPN?
    • Remove Blocks
    • Access Content
    • Unblock Websites
    • VPN for Gaming
    • Stream Media
    • Stream Music
    • VPN for Netflix
    • VPN for ChatGPT
    • Protect Your Data
    • Internet Privacy
    • Anonymous IP
    • Conceal Identity
    • Prevent Tracking
    • Save Money
    • Browse Safely
    • Online Security
    • VPN Encryption
    • What Is My IP?
    • Hide Your IP
    How Does a VPN Work?
  • Pricing
  • Help
  • en
    EN
    • Deutsch Deutsch
    • Español Español
    • Français Français
    • العربية العربية
    • Indonesia Indonesia
    • Italiano Italiano
    • 한국어 한국어
    • Nederlands Nederlands
    • Polski Polski
    • Português Português
    • Türkçe Türkçe
    • 简体中文 简体中文
    • ไทย ไทย
    • Tiếng Việt Tiếng Việt
    • Čeština Čeština
    • فارسی فارسی
    • Română Română
    • Filipino Filipino
    • 日本語 日本語
Get VeePN

What Is My Port Number and How To Find It?

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.

Avatar photo VeePN Research Lab
Jul 26, 2024
5 min read
What Is My Port Number and How To Find It?
Promo Secure your digital life with VeePN
  • Privacy on any Wi-Fi
  • No data and speed caps
  • One account, 10 devices
  • 2 500+ servers in 89 locations
Get VeePN Now
Get the week’s best marketing content
Quick Navigation
1. What is a port?
2. How do I find my port number?
3. How to open a port
4. FAQ

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. 

FAQ: What is my port number?

  • 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.

  • Written by VeePN Research Lab VeePN Research Lab is dedicated to provide you latest posts about internet security and privacy.
    Promo
    Knowledge is power,
    VeePN is freedom
    Get VeePN Now
    Keep your personal data private.
    Protect yourself with VeePN
    Get VeePN Now Learn More
    Related Posts
    Is Opera VPN Safe
    Cybersecurity 14 min read

    Is Opera VPN Safe? Comparison with VeePN

    VeePN Research Lab
    May 8
    Can you use a VPN for Sports Bet
    Entertainment 13 min read

    Can You Use VPN to Sports Bet?

    VeePN Research Lab
    May 8
    Related Posts
    What Is A VPN Gateway
    Uncategorised 10 min read

    What Is a VPN Gateway and How Does It Work 

    VeePN Research Lab
    May 8
    Does VPN Drain Battery
    Good to know 13 min read

    10 Key Benefits of IoT for Consumers and Businesses

    VeePN Research Lab
    May 8
    Does VPN drain battery
    All about VPN 15 min read

    Does VPN Drain Battery?

    VeePN Research Lab
    May 8

    How about protecting your data and saving 78%?

    All-in-one privacy protection:

    • description iconNo data breaches
    • description icon24/7 monitoring

    Security bundle

    breach alert icon

    Breach Alert

    +
    antivirus icon

    Antivirus

    +
    alternative id icon

    Alternative ID

    limited offer icon Limited Offer
    timer icon

    Offer ends in:

    24:00:00
    - 78%

    money-back guarantee icon 30-day money-back guarantee

    Claim this offer
    Want to read more like this?
    Get the latest news and tips from VeePN.
    We won’t spam, and you will always be able to unsubscribe.
    VeePN
    Products
    • Windows PC VPN
    • VPN for macOS
    • Linux
    • iOS
    • Android
    • Chrome
    • Firefox
    • Edge
    General
    • What Is a VPN?
    • VPN Software
    • Features
    • Pricing
    • Student Discount
    • Servers
    • Blog
    Help
    • Support Center
    • Contact Us
    • Privacy Policy
    • Terms of Service
    • Warrant Canary
    Benefits
    • Access Content
    • Internet Privacy
    • Online Security
    • Anonymous IP
    • VPN for Gaming
    • Prevent Tracking
    Tools
    • What Is My IP?
    • Hide Your IP
    Countries
    • US VPN
    • UK VPN
    • Canada VPN
    • Turkey VPN
    Earn Money
    • Affiliates
    visa
    mastercard
    bitcoin
    paypal
    american express

    © 2025 VeePN Corp. Services provided by VeePN Corp., Panama. Payments & transactions partners: Laraun Limited (Cyprus) and IT Research LLC (USA).