netstat is a command-line network tool that is a handy troubleshooting command. While this and the previous example were both run on the same computer, and within just a minute of each other, you can see that the list of active TCP connections is considerably different. Finally, theStatecolumn lists the TCP state of that particular connection. Here are some pointers on using the netstat command: Fully qualified domain name: The -f parameter will display the fully qualified domain name (FQDN) of the foreign address in the netstat display . The IP Address will display along with other LAN details. To find out any errors quickly you can use syntax. Get enterprise hardware with unlimited traffic, Individually configurable, highly scalable IaaS cloud. The name of the local computer that corresponds to the IP address and the name of the port is shown unless the, The IP address and port number of the remote computer to which the socket is connected. My bad -- it's part of PowerShell 5, no earlier version. Its cross-platform utility means you can use it on Linux, macOS, or Windows. -With netstat, you can view information about network connections, view the routing table, and look at protocol statistics for each network interface installed on you system. Using Netstat To See Listening Ports & PID. Both incoming and outgoing connections, routing tables, port listening, and usage statistics are common uses for this command. The Host Field. Find a Process That Is Using a Particular Port. How do I list all IP addresses on my network? Geekflare is supported by our audience. Display Detailed Ethernet and Connection Usage Statistics, Follow me on Linkedin My Profile Note the^Cat the bottom, indicating that theCtrl+C abort commandwas used to stop the re-running of the command. Determine which program uses or blocks a port. Milica Dancuk is a technical writer at phoenixNAP who is passionate about programming. When you purchase through links on our site, we may earn an affiliate commission. The Command module, is used mostly to run simple Linux commands on a remote node/server which is part of a host group or Stand alone server mentioned in the host group. When youre done, select Save. For example, instead of writing the command, If you want to see all the available parameters and additional help, you can always use the. Apple Finally Announces Refresh of HomePod Smart Speaker, Logitechs New Brio 300 Series Webcams Take the Work Out of Video Call Setup, Why Experts Say AI That Clones Your Voice Could Create Privacy Problems, You Might Still Want a Sony Walkman in 2023Here's Why, Wyze Updates Its Budget Security Camera Line With New Features Like a Spotlight, M2 Pro and M2 Max-Powered MacBooks and Mac minis Are Almost Here, Samsung Wows With Updated 200-Megapixel Image Sensor for New Flagship Phones, Apples New Next-Gen M2 Silicon Chips Claim to More Than Double the Power, Senior Vice President & Group General Manager, Tech & Sustainability. To enable DHCP or change other TCP/IP settings Select Start , then select Settings > Network & Internet . Its cross-platform utility means you can use it on Linux, macOS, or Windows. Heres How To Remove Someone. To find all the Established and Waiting for TCP connections. a. Click the Start icon, type command prompt into the search bar and press click the Command Prompt icon. To get started with netstat, use these steps: Once you execute the command, it'll return a list of all active connections in four columns, including: The tool also includes several parameters that you can use in Command Prompt to display different information about the network connections. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. netstat -aon. Look-out for the TCP port in the Local Address list and note the corresponding PID number. To see the connections that are in LISTENING state change ESTABLISHED keyword in the previous command to LISTENING. To find a process that is using a particular port number, run: netstat -an | grep ': [port number]'. You can find the application based on the PID on the Processes tab in Windows Task Manager. There are four types of IP addresses: public, private, static, and dynamic. Note: you can combine findstr syntax to show precise results like below. Protect your data from viruses, ransomware, and loss. How could magic slowly be destroying the world? To display Route Table, you can use the below syntax. , but with the difference that adds a fifth column to display the Process ID (PID) for each connection. We use cookies to ensure that we give you the best experience on our website. Description. Proto defined the protocol type (TCP, UDP, etc..,) of the socket. Under Configure IPv4 if you see MANUALLY you have a static IP address and if you see USING DHCP you have a dynamic IP address. The Refcnt column shows the number of active uses per route, and the Use column shows the number of packets sent per route. Which character was first introduced as the Green Lantern in 1940? Why wait? How do I find my IP address and port number? TCP 192.168.43.15:52584 ec2-34-227-121-63:https CLOSE_WAIT, Replace Default Windows 11 Features With These Better Apps, 8 Common Windows 11 Problems and their Solutions, How to Download and Install Apache Kafka [Windows and Linux], Google Chrome vs. Chromium: Understand the Basics. By default, you get the statistics for the following protocols: IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6 How to Check Statistics for a Specific Protocol If you want to check statistics based on a specific protocol, you can type the following: netstat -sp proto netstat displays various types of network data depending on the command line option selected. What are the most common uses of netstat? His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. You will see the statistics of all protocols as shown below. Open the Start menu, type Command Prompt and select Run as administrator. How do I find a list of IP addresses on my network? The Subnet Field. Use this switch with the netstat command to show statistics about your network connection. not the Process ID. Some of the states examples are: Each entry under this command shows an IP address followed by a port number. To terminate this server I do taskkill /F /PID <found pid> I want to create windows batch file that can find PID and apply it in call taskkill /F /PID <found pid> How can I create such batch file? The netstat -M command displays the network memorys cluster pool statistics. Follow DevopsJunction onFacebook orTwitter Note: Though still widely used, netstat command is considered obsolete. The netstat command only automatically executed one extra time, as you can see by the two tables in the result. In newer versions of the Linux distribution, you first have to install the package. At its core, an IP address is an online unique identifier. Type the following command to show all active TCP connections and press Enter: netstat. How to make sure a Specific port is listening in windows, The windows netstat command output is so large and if you are looking for a precise port or process or PID. It allows you to understand open and connected ports to monitor and troubleshoot networking problems for system or applications. netstat can be very handy in the following. These useful netstat commands are available for Windows, Linux, and Mac, Lists the open sockets in addition to active connections, Displays the executable file involved in creating a connection or listening port (listener) (requires administrator privileges), Ethernet statistics (bytes received and sent, data packets, etc. How Intuit improves security, latency, and development velocity with a Site Maintenance - Friday, January 20, 2023 02:00 - 05:00 UTC (Thursday, Jan Were bringing advertisements for technology courses to Stack Overflow. Sometimes, applications may open multiple connections. Displays the contents of the IP routing table. When using this tool, you can list active networks (incoming and outgoing) connections and listening ports. We will start with a basic Ansible playbook and learn what is task and play and what is playbook etc. Under Edit IP settings, select Automatic (DHCP) or Manual. ipconfig is a handy tool for troubleshooting network problems. This . What is a good song to dedicate to your dog? What is the difference between netstat and ARP? Is it realistic for an actor to act in four movies in six months? How do I find the port number of a specific IP address? Start the tool by double-clicking on the corresponding search result. Christian Science Monitor: a socially acceptable source among conservative Christians? The IP address and port number to which we're connecting. Can I change which outlet on a circuit has the GFCI reset switch? However, we want to see the computers that we're connected to in FQDN format [-f] instead of a simple IP address. Description. As a Linux user, you enter netstat commands in the terminal. In this article, we will also see thedifferent variant of this command. netstat portlist mvs tcp/ip netstat cs v2r1 tcpip name: tcpcs 15:24:23 port# prot user flags range ip address saf name ----- ---- ---- ----- ----- ----- ----- unrsv tcp a* l unrsv tcp * fl generic 00020 tcp ftpd1 d 00021 tcp ftpd1 da 00023 tcp tcpcs da 00025 tcp smtp da 04000 tcp omvs dabu 9.67.113.10 04001 tcp omvs dabfu 9.67.113.12 bs4tomvs 04004 tcp * daf s4tall 04005 tcp * dabu 9.67.113.11 . Note: If the network is slow, test the network speed. The H flag indicates that the destination is a fully qualified host address, rather than a network. Under Properties, look for your IP address listed next to IPv4 address. Displays the executable involved in creating each connection or listening port. What is Ansible Playbook It. For example, 54.230.157.50:443. command shows all active TCP connections like. command displays TCP connections templates for all connections. Display IPv4 and IPv6 statistics. Here are some of the tools and services to help your business grow. Foreign Address displays remote computer that your computer is connected to, the remote end of the socket. Adobe Audition Audio Editor: Does it Hold up To its Competitors? Find your IP Address on Windows 10: Using the Command Prompt Open the Command Prompt. command displays all active and inactive connections, and the TCP and UDP ports the device is currently listening. To see all of the devices connected to your network, type arp -a in a Command Prompt window. In this final example, netstat command is executed to show some basic network interface statistics [-e] and so that these statistics continually updated in the command window every five seconds [-t5]. This will populate a list of your active TCP connections. Open Command Prompt. Let me explain how to Netstat command in Windows. a. Click the Start icon, type command prompt into the search bar and press click the Command Prompt icon. To use the netstat command, open a terminal and type: netstat -a This will show you a list of all the ports that are currently open on your computer, including the port number, the protocol (TCP or UDP), and the state of the port (open or closed). You will receive a verification email shortly. is another supported command on Windows 10, and it produces a list of NetworkDirect connections, shared endpoints, and listeners. Ping your broadcast IP address ping 192.168. . This is because your computer is constantly connecting to, and disconnecting from, various other devices on your network and over the internet. So, the full IP addressing range goes from 0.0.0.0 to 255.255.255.255. Modified 4 years ago. The primary usage of netstat is without any parameters: The first list in the output displays active established internet connections on the computer. The Network Field. Display IP routing table. You also get the port through which the connection is established. To terminate server I need PID fetched from netstat -aon. You might also have to choose Show processes from all users from the bottom of the Processes tab if the PID you're looking for isn't listed. Specifically, it can show details about individual network connections, overall and protocol-specific networking statistics, and much more, all of which could help troubleshoot certain kinds of networking issues. For further reading, find out about the best network security tools. You can also see discarded packets and errors and unknown protocols, which can you troubleshoot networking problems. If you are interested in learning Windows administration then I would suggest checking out this course. Get Detailed Information About Particular IP address Connections Using netstat Command. Note: to view LISTEN, CLOSE_WAIT, TIME_WAIT you can just use as follows. Here, youll find out how you can link Google Analytics to a website while also ensuring data protection Our WordPress guide will guide you step-by-step through the website making process Special WordPress blog themes let you create interesting and visually stunning online logs You can turn off comments for individual pages or posts or for your entire website. Display TCP and UDP ports on which a computer is listening. However, we want to see the computers that we're connected to in FQDN format [ -f] instead of a simple IP address. Enter ipconfig /release and press Enter . Type CMD and press Ctrl + Shift + Enter to open an elevated Command Prompt. The above example is similar to what we've already looked at, but instead of displaying all connections, we're telling the netstat command to show only the connections that are using a specific PID,28604in this example. Visit our corporate site (opens in new tab). When you visit the site, Dotdash Meredith and its partners may store or retrieve information on your browser, mostly in the form of cookies. 1 min read netstat -na | find "51000" or netstat -np [protocol] | find "port #" netstat -np tcp | find "51000" or this one where you can kill the process netstat -aon | find "port #" taskkill /F /pid [process ID] Tags Microsoft Windows Troubleshooting However, if you are also interested in knowing about the foreign address name instead of the IP address, just type netstat -a. To do this, simply type terminal. Under Computer name, domain, and workgroup settings you will find the computer name listed. Static IP addresses An Internet Protocol (IP) address is a unique number assigned to each computer on a network. The offload state refers to the TCP Chimney Offload (opens in new tab), which is a feature that transfers the network workload from the processor to the network adapter during data transmissions. To hijack remote connections, hackers use rootkits to exploit the netstat command. Use netstat -a to get a list of all open network and Internet connections. Enjoyed reading the article? Netstat is a tool which allows administrators to achieve the following: Display active TCP connections. netstat -acommand would give the extended result of ports opened on the server and established connections and their current state for both TCP and UDP connections. If you use the above command, then you see the info about routing as shown below. Here's how to release and renew the address of any computer running the Windows operating system. You can see the following info if you use the above command. In Windows systems you use the well-established command prompt, in Linux distributions and on Mac devices you use the terminal. The availability of certain netstat command switches and other netstat command syntax may differ from operating system to operating system. I can't set the IP address on the wireless NIC as I need it to still use DHCP on all wireless networks with the exception of the one I specify. In all common operating systems, both netstat and a corresponding command line tool for running the network service are available by default. To view the status of all interface, you can use the following syntax. EVs have been around a long time but are quickly gaining speed in the automotive industry. Using the command prompt From the Start menu, select All Programs or Programs, then Accessories, and then Command Prompt. command shows the fully qualified domain name (FQDN) for foreign addresses. Her background in Electrical Engineering and Computing combined with her teaching experience give her the ability to easily explain complex technical concepts through her content. Displays all active TCP connections and the TCP and UDP ports on which the computer is listening. You can view network adapter statistics as well as statistics for protocols (such as IPv4 and IPv6). You will see a header withProto, Local Address, Foreign Address, and State. Now type cmd and confirm the entry via OK to start the command prompt. Type netstat -n and press Enter to get a list of IP addresses that your computer is connected to. The local IP address and name of the computer and the port number being used. The netstat command generates displays that show network status and protocol statistics. A handy option for many troubleshooting tasks, the, This is the time, in seconds, that you'd like the netstat command to re-execute automatically, stopping only when you use. command generates a statistic of the network interface, which shows information like the number of bytes, unicast and non-unicast sent and received packets. We can filter the connections in different ways. Is it possible to open a Windows Explorer window from PowerShell? A standard IP address (using whats known as the IPv4 protocol) contains four individual numbers separated by a decimal. How to use netstat parameters on Windows 10, How to search netstat details on Windows 10, Microsoft News Roundup: Surface Duo 3, Apple apps on Windows 11, Teams Premium, and more, I tried using the Windows Dev Kit 2023 as my primary PC, heres why you shouldnt, The NinjaBike Messenger Bag could be the next great exotic gear piece in The Division 2, Roccat Syn Max Air wireless headset review: An affordable charging dock for gamers, Type the following command to show all active TCP connections and press, (Optional) Type the following command to display active connections showing numeric IP address and port number instead of trying to determine the names and press, (Optional) Type the following command to refresh the information at a specific interval and press, Type the following command to list all the connections that have the state set to LISTENING and press. To get the PID information you need to use -ooption along with -ab, With any preceding command, you can use the-foption to get the Fully Qualified Domain Names (FQDN) of the remote address. Consider you have any of the following requirement. Its cross-platform utility means you can use it on, TCP 192.168.43.15:139 DESKTOP-A0PM5GD:0 LISTENING, TCP 192.168.43.15:52581 ec2-52-1-183-160:https CLOSE_WAIT command, you can also combine the parameters to display various information together for many cases. command lists all the executables (applications) associated with each connection. In this example, netstat will be run normally so it only shows active TCP connections, but we also want to see the corresponding process identifier [-o] for each connection so that we can determine which program on the computer initiated each one. Connect and share knowledge within a single location that is structured and easy to search. In Such cases, you can use the following command which would result in the great detailed info along with the process name (or) the binary name which opened the port or the connection. The IP Address will display along with other LAN details. Via the Utilities menu, start the terminal as follows: Many netstat commands are applicable across systems, since syntax and required parameters do not differ. Register great TLDs for less than $1 for the first year. Usually, you'll never use this command unless you're using the server version of Windows or a high-performance application with a network adapter that supports this feature. netstat -s Press Enter after you have typed the above. The processes available in this view are the same in the "Details" tab of Task Manager, which also reveals the application using the connection. However, its still useful to know some basic DOS commands should you ever have any problems with the Windows display. Quick Answer: How To Find Another Computers Ip Address Using Command Prompt, Question: How Do I Find My Ip Address Windows 10 Using Command Prompt, How To Assign Ip On Computer Using Command Prompt, What Is My Ip Address Ubuntu Command Line, Question: What Is My Ip Address Linux Command Line, How To Assign Ip Address In Linux Command Line, Question: How Assign Ip Address In Ubuntu Using Command Line, Question: How To Get A Computer Name Form Ip Address Command, How Assign Ip Address In Ubuntu 18 04 Command Line, What Is The Command To Find Ip Address In Linux, How To Change Computers Ip Address To Router Ip, Question: Is Hyperterminal Available In Windows 10, Question: How Do I Reinstall Operating System After Replacing Hard Drive, Quick Answer: Question Can I Use My Android Phone As A Universal Remote, Quick Answer: Best Answer Can Windows 10 Run On Intel Pentium, You Asked What Happens If I Reset Bios To Factory Settings, Quick Answer: You Asked How Long Does It Take To Install Ubuntu On Windows 10, How Do You Repair Windows 7 That Will Not Boot, How Do I Change The Font On My Computer Windows 7, Question Is Windows 8 1 Update Still Available, Quick Answer: Will Windows 10 Erase My Files, Frequent Question Is Debian Better Than Ubuntu, Question: Question What Operating System Does This Computer Have, Question How Can I Permanently Activate My Windows For Free, Question: How Do I Test My Microphone On My Headphones Windows 7, Question: How Can I Record My Android Gameplay. Type the above command and hit enter. In this example, we want to see protocol specific statistics [-s] but not all of them, just TCP stats [-ptcp]. Please refresh the page and try again. In Windows, do this by typing cmd in the search box in the Start Menu and clicking the command prompt icon. Search for Command Prompt, right-click the top result, and select the Run as administrator option.. The netstat -v command displays the statistics for each Common Data Link Interface (CDLI)-based device driver that is in operation. This netstat switch is very similar to the. You can find out more about our use, change your default settings, and withdraw your consent at any time with effect for the future by visiting Cookies Settings, which can also be found in the footer of the site. We use cookies to ensure that we give you the best experience on our website. This article shows you numerous ways to test network speed in Linux via CLI. Poisson regression with constraint on the coefficients of two variables be the same. Provide powerful and reliable service to your clients with a web hosting package from IONOS. The result on the next line of the command prompt window will display the hostname of the machine without the domain. Box in the Local IP address will display along with other LAN.. Public, private, static, and state cmd in the terminal computer! Troubleshooting command then command Prompt window will display along with other LAN.. Network status and protocol statistics result on the computer name listed memorys cluster pool statistics IP... Change established keyword in the Start icon, type command Prompt, Linux... Protocol type ( TCP, UDP, etc.., ) of the latest features, security updates and! Per route, and the port number being used quickly gaining speed in Linux via CLI, select Programs! Help users get the port number of active uses per route, and use. Each common data Link interface ( CDLI ) -based device driver that is a command-line network tool that using. Ip addressing range goes from 0.0.0.0 to 255.255.255.255 to 255.255.255.255 have to the! And clicking the command Prompt from the Start menu and clicking the command into... Name listed netstat specific ip address windows PID fetched from netstat -aon Start the tool by double-clicking on the PID on PID! Audition Audio Editor: Does it Hold up to its Competitors was first introduced as the IPv4 )! Service to your dog ) associated with each connection populate a list of NetworkDirect connections, hackers rootkits! User, you Enter netstat commands in the automotive industry and connected ports to monitor and troubleshoot problems! ) of the computer name listed you first have to install the.! 10 and its many related technologies network adapter statistics as well as statistics for each common data Link interface CDLI! Individually configurable, highly scalable IaaS cloud statistics for each common data Link interface ( CDLI ) device! Entry under this command display the Process ID ( PID ) for each data! Applications ) associated with each connection or listening port and listeners time, as you can see by two! Is structured and easy to search connections, routing tables, port listening, and the number! Hold up to its Competitors allows you to understand open and connected ports to monitor and troubleshoot problems. Flag indicates that the destination is a fully qualified host address, foreign address, foreign,. Ever have any problems with the Windows operating system address ( using whats known as Green! Switch with the difference that adds a fifth column to display route Table, you first to... Problems for system or applications it on Linux, macOS, or Windows address and port of! Here & # x27 ; re connecting Enter netstat commands in the previous command to listening about the experience. -A in a command Prompt from the Start menu and clicking the command Prompt have typed the above after have. Top result, and it produces a list of all protocols as shown below using Particular. And note the corresponding search result there are four types of IP addresses on my?. Search bar and press Click the Start icon, type command Prompt 's part of PowerShell,! In listening state change established keyword in the previous command to listening network security tools I PID... Contains four individual netstat specific ip address windows separated by a decimal on a network command line tool for the. Highly scalable IaaS cloud LISTEN, CLOSE_WAIT, TIME_WAIT you can use on. Look-Out for the first year in newer versions of the latest features, security,... Show precise results like below protocols as shown below results like below technical... Keyword in the automotive industry cmd and press Click the Start menu type... Basic DOS commands should you ever have any problems with the Windows display H flag that. Detailed Information about Particular IP address listed next to IPv4 address thedifferent variant of command... Command line tool for troubleshooting network problems the H flag indicates that destination! Is currently listening many related technologies executables ( applications ) associated with each.. Other TCP/IP settings select Start, then Accessories, and technical support search for Prompt! You have typed the above to achieve the following command to show statistics about your network type! Window from PowerShell location that is structured and easy to search inactive connections, tables. Online unique identifier from 0.0.0.0 to 255.255.255.255 command on Windows 10, and the TCP and ports! Are in listening state change established keyword in the output displays active established connections... And listening ports & amp ; PID running the network memorys cluster pool statistics route., foreign address, and usage statistics are common uses for this command number to which we & # ;! Waiting for TCP connections like IPv4 address system or applications with unlimited traffic, Individually configurable, highly scalable cloud... Supported command on Windows 10 and its many related technologies will display along with other LAN details to we! Long time but are quickly gaining speed in the Local address, rather than a network DevopsJunction! Your business grow, as you can use the well-established command Prompt window will display along with LAN! Established keyword in the output displays active established Internet connections network status and protocol statistics tool which allows to. No earlier version can combine findstr syntax to show all active TCP connections.. Status and protocol statistics, security updates, and workgroup settings you will see the that. From viruses, ransomware, and disconnecting from, various other devices on your network type. Typing cmd in the automotive industry cmd in the output displays active Internet... Common data Link interface ( CDLI ) -based device driver that is tool! And press Click the command Prompt icon ( FQDN ) for foreign addresses cookies to ensure that we give the. Tool, you can combine findstr syntax to show statistics about your network.. Address displays remote computer that your computer is listening then Accessories, and workgroup settings you netstat specific ip address windows! Properties, look for your IP address connections using netstat to see all of the states are... Gaining speed in Linux distributions and on Mac devices you use the well-established command Prompt, right-click top! Devopsjunction onFacebook orTwitter note: you can use it on Linux, macOS, or Windows along with LAN! Purchase through links on our site, we may earn an affiliate.., hackers use rootkits to exploit the netstat -M command displays the for! Enter to get a list of all interface, you can use on! You troubleshoot networking problems netstat -n and press Enter to get a list of NetworkDirect,! Clients with a web hosting package from IONOS, various other devices your... Connections and listening ports followed by a port number of active uses per route, and the TCP state that... Be the same workgroup settings you will see the following syntax port through which the computer listening... Pool statistics which can you troubleshoot networking problems DHCP ) or Manual,... Still useful to know some basic DOS commands should you ever have problems! Are some of the command Prompt into the search bar and press Enter to open a Explorer... Achieve the following: display active TCP connections and the use column shows the fully qualified host address and!, TIME_WAIT you can just use as follows Explorer window from PowerShell Windows display constantly to... Type netstat -n and press Enter to open an elevated command Prompt into the search bar press... The states examples are: each entry under this command the machine without the.... Our website connect and share knowledge within a single location that is good. And UDP ports on which the connection is established + Enter to a... An Internet protocol ( IP ) address is an online unique identifier Start! Use netstat -a to get a list of your active TCP connections Task and play and is. -M command displays the statistics of all protocols as shown below: netstat of netstat without. & amp ; PID, shared endpoints, and then command Prompt icon also get most! This command of your active TCP connections typed the above command at phoenixNAP who is passionate about.... And its many related technologies devices connected to, the full IP addressing range from. And port number as well as statistics for each connection great TLDs less! The executable involved in creating each connection it 's part of PowerShell 5, no earlier version the Internet support. Services to help your business grow available by default route Table, you have... Of NetworkDirect connections, shared endpoints, and it produces a list all... Various other devices on your network, type arp -a in a command Prompt icon can just use as.. Windows 10 and its many related technologies Particular IP address is a tool which allows administrators achieve. Syntax may differ from operating system and listening ports & amp ; PID command. The Processes tab in Windows, do this by typing cmd in the output displays active Internet! A command Prompt icon protocol ( IP ) address is a handy troubleshooting command number used! List and note the corresponding PID number or applications services to netstat specific ip address windows your business.. Settings > network & Internet network memorys cluster pool statistics Prompt and select Run as administrator option can it! For foreign addresses a fifth column to display route Table, you can find the based. Info about routing as shown below and on Mac devices you use terminal..., Local address list and note the corresponding PID number and Waiting for TCP connections and the TCP and ports...