Port Numbers Used for Computer Networks GA S REGULAR Menu Lifewire Tech for Humans Newsletter! Search Close GO Internet, Networking, & Security > Home Networking 237 237 people found this article helpful
Port Numbers Used for Computer Networks
TCP and UDP ports explained
By Bradley Mitchell Bradley Mitchell Writer Massachusetts Institute of Technology University of Illinois An MIT graduate who brings years of technical experience to articles on SEO, computers, and wireless networking. lifewire's editorial guidelines Updated on September 17, 2021 Reviewed by Michael Barton Heine Jr Reviewed by Michael Barton Heine Jr Michael Heine is a CompTIA-certified writer, editor, and Network Engineer with 25+ years' experience working in the television, defense, ISP, telecommunications, and education industries. lifewire's editorial guidelines Tweet Share Email Tweet Share Email In This Article
Expand Jump to a Section What Is a Port Number in Networking How Port Numbers Work When You May Need to Take Action With Port Numbers Open and Closed Ports In computer networking, port numbers are part of the addressing information used to identify the senders and receivers of messages. They are associated with TCP/IP network connections and might be described as an add-on to the IP address. What Is a Port Number in Networking
Port numbers allow different applications on the same computer to share network resources simultaneously. Home network routers and computer software work with these ports and sometimes support configuring port number settings. Networking ports are software-based and unrelated to physical ports that network devices have for plugging in cables. Hero Images / Getty Images How Port Numbers Work
Port numbers relate to network addressing. In TCP/IP networking, both TCP and UDP use a set of ports that work together with IP addresses. These port numbers work like telephone extensions. Just as a business telephone switchboard can use the main phone number and assign each employee an extension number, a computer can have a main address and a set of port numbers to handle incoming and outgoing connections. In the same way that all employees within a building can use one phone number, one IP address can be used to communicate with various applications behind one router. The IP address identifies the destination computer, and the port number identifies the specific destination application. This is true whether it's a mail application, file transfer program, or web browser. When you request a website from a web browser, the browser communicates over port 80 for HTTP. Then, the data is sent back over the same port and displays in the program that supports that port (the web browser). In both TCP and UDP, port numbers start at 0 and go up to 65535. The lower ranges are dedicated to common internet protocols such as port 25 for SMTP and port 21 for FTP. To find the specific values used by certain applications, view a list of the most popular TCP and UDP port numbers. For Apple software, view the TCP and UDP ports used by Apple software products. When You May Need to Take Action With Port Numbers
The network hardware and the software automatically process port numbers. Casual users of a network do not see these port numbers and don't need to take any action involving their operation. Individuals can, however, encounter network port numbers in certain situations. Network administrators may need to set up port forwarding to allow the port numbers of specific applications to pass through a firewall. On home networks, a broadband router supports port forwarding on its configuration screens. A common application of homeport forwarding is for online games that use non-standard ports that the router's built-in firewall blocks. Network programmers sometimes need to specify port numbers in their code, such as in socket programming. A website URL will sometimes require a specific TCP port number to be included. For example, http://localhost:8080/ uses TCP port 8080 rather than the default port 80. This is usually seen in software development environments more than in mainstream consumer usage. Open and Closed Ports
Network security enthusiasts also frequently discuss the port number used as a key aspect of attack vulnerabilities and protections. Ports can be classified as either open or closed. Open ports have an associated application that listens for new connection requests, and closed ports do not. A process called network port scanning detects test messages at each port number to identify which ports are open. Network professionals use port scanning as a tool to measure exposure to attackers and often lock down networks by closing non-essential ports. Hackers, in turn, use port scanners to probe networks for open ports that may be exploitable. You can use the netstat command in Windows to see information regarding active TCP and UDP connections. Was this page helpful? Thanks for letting us know! Get the Latest Tech News Delivered Every Day Subscribe Tell us why! Other Not enough details Hard to understand Submit More from Lifewire How to Set Up Port Forwarding 9 Best Free Firewall Programs (Updated October 2022) What Is Port 0 Used For? How to Use the Netstat Command The Most Popular TCP and UDP Port Numbers TCP Port Number 21 and How It Works With FTP How Web Browsers and Web Servers Communicate 15 Best Free Remote Access Software Tools (Oct. 2022) Private IP Addresses: Everything You Need to Know DNS Servers: What Are They and Why Are They Used? TCP vs. UDP How to Use an IP Address to Find a MAC Address How to Check If a Port Is Open in Windows 10 127.0.0.1 IP Address Explained Can't Connect to the Internet? Try These 10 Tips How to Use the Netstat Command on Mac Newsletter Sign Up Newsletter Sign Up Newsletter Sign Up Newsletter Sign Up Newsletter Sign Up By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. Cookies Settings Accept All Cookies