Since certain games and programs use different ports to function, knowing your port numbers can be useful when it comes to configuring firewalls or give certain apps access. Now, are you wondering what is my port number? Here you can learn the steps to find your port number on any OS.
How to Find Your Port Number
Here’s how to find your port number on Windows 8, Windows 10, or Mac device:
How to Find Your Port Number on Windows
- In the search box, type
cmd
and hit theEnter
button. - Enter the
netstat -a
command. This will display a list of your port numbers.
How to Find Your Port Number on macOS
- Open the
Terminal
app. - Type the
netstat -an
command and press Enter to see your port numbers.
Get Port Forwarding VPN
What is a Port Number?
To put it simply, a port number is the means through which a specific message is identified when it’s forwarded to a server. As there are 65,535 ports for each IP address, a specific designation would refer to one or several of those thousands of ports. Depending upon the service type, the message will either be associated with a TCP or a UDP port.
TCP vs. UDP
TCP stands for Transmission Control Protocol and sends the data after establishing a connection. which makes it more reliable than UDP for data transfers. On the other hand, UDP stands for User Datagram Protocol and sends data packets connection-less which makes it lightweight and significantly faster than TCP. You don’t really need to be particularly concerned with the details of TCP versus UDP here; port forwarding might apply to TCP or UDP, though. For more information,
Read: What is Port Forwarding?
What Can You Do with a Port Number?
Knowing your port number can be useful as it will let you:
- Allow Apps and Games Through Firewalls: When firewalls block your favorite games or apps, knowing their port numbers lets you set up port forwarding. This can improve connectivity and allow you to host game servers.
- Boost Your Internet Speed: By opening and forwarding ports, you can streamline the way your router processes data, potentially speeding up your downloads and improving your streaming quality.
- Check for Security Risks: Open ports can be risky as they might allow hackers to send or receive data from your device. To enhance your network’s security, it is important to identify and close any ports that are not in use.
Get Port Forwarding VPN
What is the Difference between an IP Address and a Port Number?
A computer network is made up of a collection of devices – such as routers, printers, laptops, and cameras – that are connected together for sharing data and resources.
Each device within the network has a unique numerical label allocated to it, known as the Internet Protocol (IP) address. This helps with two main functions:
- Network or host identification
- Location addressing
A port number works in tandem with the IP address to direct specific traffic to a specific destination on a network. This can be done to optimize performance or to grant access altogether, as in the case of a web server. If the webserver port wasn’t open, you wouldn’t be able to run one, and people wouldn’t be able to connect to you.
How to use a port number for Port Forwarding?
Port Forwarding is best-suited for hosting servers, allowing P2P file transfers, seamless downloading, or running remote desktop applications. It allows you to remotely access devices on a private network using port numbers. You can forward ports behind CGNAT, which most ISPs perform to conserve IP bandwidth. For more information,
Read:
To use your port number for port forwarding, follow these steps:
- Type your router’s IP into the address bar on the web browser.
- Enter your router’s credentials to view the settings menu.
- Navigate to the port forwarding section of your router.
- Create a Port Forwarding rule (Add New or Add Custom Service).
- Enter the IP address of your gaming device in your router in the correct box.
- Type the TCP and UDP port numbers (Example: 25565 for Minecraft server).
- Restart your router to let the changes take effect.
Once your changes take effect, you can host a server, download P2P files, or access remote devices.
List of Common Port Numbers
Here are some of the most common port numbers and the services they are typically associated with:
- 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)
Frequently Asked Questions
The following are answers to some of the most frequently asked questions about port numbers.
Why Do I Need to Know my Port Number?
You need to use different ports for specific applications and that’s why you should know about port numbers. With the help of port numbers, you can:
- Configure security firewalls on any device, be it Windows or Mac
- Filter out IP addresses that range from mail service (SMTP), file transfer (FTP), web service (HTTP)
- Learn which incoming port is receiving or sending encrypted data and which one aren’t
- Enhance your online security without compromising private data
What is an IP Address?
An IP address is simply an address on the internet. Just like homes have addresses, so do computers connected to the internet.There are two types of IP addresses: public and private. The private IP is the address allocated to your device by your router. The public IP address is provided by your ISP and it is the address that allows you to explore the internet. You can easily check your IP address via an IP lookup tool. Visit the IP lookup tool, and it will show your public IP address as well as IP location, ISP and even operating system.
How do I find the port number of a specific IP address?
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.45.2 and you’re being displayed an entry for 192.168.45.2:57961, it means the port number 57961 is open and possibly in use.
What does a port scanner do?
Basically, a port scanner probes a host or server for open ports. These applications are commonly used by administrators to verify network security policies (but usually to see that ports are CLOSED, not open). In fact, even hackers use port scanners to identify open ports on a host so they can exploit any vulnerabilities attributed to those open ports.
What are the three types of ports?
Ports are divided into three types: Well-known ports (0-1023) for system services like HTTP, Registered ports (1024-49151) for specific applications, and Ephemeral ports (49152-65535) for temporary tasks. These ports are managed by the Internet Assigned Numbers Authority (IANA).
Is my port open?
There are many port checking tools available on the internet that allow you to check your public (external) IP address and detect if there are any open ports associated with your IP address. This can help you in checking if port forwarding has been set up correctly on your router, or if a firewall is getting in the way of your server applications.
Learn More About IP Addresses
- What is My IP
- How to Hide IP Address
- Anonymous IP
- Default Gateway
- Router IP Address
- Netgear Router IP
- Port Number
We use 1st and 3rd party cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie | Duration | Description |
---|---|---|
__stripe_mid | 1 year | This cookie is set by Stripe payment gateway. This cookie is used to enable payment on the website without storing any patment information on a server. |
__stripe_sid | 30 minutes | This cookie is set by Stripe payment gateway. This cookie is used to enable payment on the website without storing any patment information on a server. |
Affiliate ID | 3 months | Affiliate ID cookie |
cookielawinfo-checbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
Data 1 | 3 months | |
Data 2 | 3 months | Data 2 |
JSESSIONID | session | Used by sites written in JSP. General purpose platform session cookies that are used to maintain users' state across page requests. |
PHPSESSID | session | This cookie is native to PHP applications. The cookie is used to store and identify a users' unique session ID for the purpose of managing user session on the website. The cookie is a session cookies and is deleted when all the browser windows are closed. |
woocommerce_cart_hash | session | This cookie is set by WooCommerce. The cookie helps WooCommerce determine when cart contents/data changes. |
XSRF-TOKEN | session | The cookie is set by Wix website building platform on Wix website. The cookie is used for security purposes. |
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Cookie | Duration | Description |
---|---|---|
__lc_cid | 2 years | This is an essential cookie for the website live chat box to function properly. |
__lc_cst | 2 years | This cookie is used for the website live chat box to function properly. |
__lc2_cid | 2 years | This cookie is used to enable the website live chat-box function. It is used to reconnect the customer with the last agent with whom the customer had chatted. |
__lc2_cst | 2 years | This cookie is necessary to enable the website live chat-box function. It is used to distinguish different users using live chat at different times that is to reconnect the last agent with whom the customer had chatted. |
__oauth_redirect_detector | This cookie is used to recognize the visitors using live chat at different times inorder to optimize the chat-box functionality. | |
Affiliate ID | 3 months | Affiliate ID cookie |
Data 1 | 3 months | |
Data 2 | 3 months | Data 2 |
pll_language | 1 year | This cookie is set by Polylang plugin for WordPress powered websites. The cookie stores the language code of the last browsed page. |
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Rakuten Advertising is a third party company that uses cookies on the website, you can view their privacy policy at this address: https://rakutenadvertising.com/legal-notices/services-privacy-policy/
Cookie | Duration | Description |
---|---|---|
_ga | 2 years | This cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors. |
_ga_J2RWQBT0P2 | 2 years | This cookie is installed by Google Analytics. |
_gat_gtag_UA_12584548_1 | 1 minute | This cookie is set by Google and is used to distinguish users. |
_gat_UA-12584548-1 | 1 minute | This is a pattern type cookie set by Google Analytics, where the pattern element on the name contains the unique identity number of the account or website it relates to. It appears to be a variation of the _gat cookie which is used to limit the amount of data recorded by Google on high traffic volume websites. |
_gcl_au | 3 months | This cookie is used by Google Analytics to understand user interaction with the website. |
_gid | 1 day | This cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form. |
_hjAbsoluteSessionInProgress | 30 minutes | No description available. |
_hjFirstSeen | 30 minutes | This is set by Hotjar to identify a new user’s first session. It stores a true/false value, indicating whether this was the first time Hotjar saw this user. It is used by Recording filters to identify new user sessions. |
_hjid | 1 year | This cookie is set by Hotjar. This cookie is set when the customer first lands on a page with the Hotjar script. It is used to persist the random user ID, unique to that site on the browser. This ensures that behavior in subsequent visits to the same site will be attributed to the same user ID. |
_hjIncludedInPageviewSample | 2 minutes | No description available. |
_hjIncludedInSessionSample | 2 minutes | No description available. |
_hjTLDTest | session | No description available. |
PAPVisitorId | 1 year | This cookie is set by the Post Affiliate Pro.This cookie is used to store the visitor ID which helps in tracking the affiliate. |
Advertisem*nt cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Cookie | Duration | Description |
---|---|---|
_fbp | 3 months | This cookie is set by Facebook to deliver advertisem*nt when they are on Facebook or a digital platform powered by Facebook advertising after visiting this website. |
fr | 3 months | The cookie is set by Facebook to show relevant advertisments to the users and measure and improve the advertisem*nts. The cookie also tracks the behavior of the user across the web on sites that have Facebook pixel or Facebook social plugin. |
IDE | 1 year 24 days | Used by Google DoubleClick and stores information about how the user uses the website and any other advertisem*nt before visiting the website. This is used to present users with ads that are relevant to them according to the user profile. |
NID | 6 months | This cookie is used to a profile based on user's interest and display personalized ads to the users. |
test_cookie | 15 minutes | This cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies. |
VISITOR_INFO1_LIVE | 5 months 27 days | This cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website. |
YSC | session | This cookies is set by Youtube and is used to track the views of embedded videos. |
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
Cookie | Duration | Description |
---|---|---|
_app_session | 1 month | No description available. |
_dc_gtm_UA-12584548-1 | 1 minute | No description |
_gfpc | session | No description available. |
71cfb2288d832330cf35a9f9060f8d69 | session | No description |
cli_bypass | 3 months | No description |
CONSENT | 16 years 6 months 13 days 18 hours | No description |
gtm-session-start | 2 hours | No description available. |
isoCode | 1 month | No description available. |
L-k26wU | 1 day | No description |
L-KVHA4 | 1 day | No description |
m | 2 years | No description available. |
newVisitorId | 3 months | No description |
owner_token | 1 day | No description available. |
PP-k26wU | 1 hour | No description |
PP-KVHA4 | 1 hour | No description |
RL-k26wU | 1 day | No description |
RL-KVHA4 | 1 day | No description |
wisepops | 2 years | No description available. |
wisepops_session | session | No description available. |
wisepops_visits | 2 years | No description available. |
woocommerce_items_in_cart | session | No description available. |
wp_woocommerce_session_1b44ba63fbc929b5c862fc58a81dbb22 | 2 days | No description |
yt-remote-connected-devices | never | No description available. |
yt-remote-device-id | never | No description available. |