Determining if a port is in use by an application or process on a virtual machine (2024)

Checking port usage from Windows

To check the listening ports and applications with Netstat:

  1. Open a command prompt. For more information, see Opening a command or shell prompt (1003892).
  2. Run this command:

    netstat -bano

    You see output similar to:

    C:\netstat -bano | more

    Proto Local Address Foreign Address State PID
    TCP 0.0.0.0:port 0.0.0.0:0 LISTENING process ID
    [process.exe]
    TCP 0.0.0.0:port 0.0.0.0:0 LISTENING process ID
    [process.exe]
    ...

    where:

    • process is the name of the application
    • port is the port that is being used
    • process ID is the process ID of the process
  3. If you see Can not obtain ownership information instead of the [process.exe] entry, you can find more information in the Windows Task Manager using the process ID:
    • Start Task Manager by pressing Ctrl+Shift+Esc
    • Click on the Processes tab and click View then Select Columns...
    • In the Select Process Page Columns window, click PID (Process Identifier), then click OK
    • You can then sort based on the PID column and find the PID number returned from the previous command

The output shows the processes that are listening, as well as the name of the process and process ID. When reviewing the information, only look at the ports that are listening to ensure that you find the correct application that is listening on that port. If you do not see any process listening for a port, that port is free to be utilized.

When you determine what is listening on the port, you must decide what action needs to be taken to resolve the conflict. This involves stopping a service or uninstalling the application that is utilizing the port.

For a list of ports used by VMware products, see TCP and UDP Ports required to access VMware vCenter Server, VMware ESXi and ESX hosts, and other network components (1012382).

Checking port usage from Linux / Mac OS / ESX

Note: Mac OS and certain distributions of Linux do not support listing the process name with Netstat. If you are using Mac OS or are seeing errors on your distribution of Linux, follow the lsof instructions below.

To check the listening ports and applications with Netstat:

  1. Open a shell prompt. For more information, see Opening a command or shell prompt (1003892).
  2. In the shell prompt window, run this command:

    netstat -pan

    You see output similar to:

    [root@server]# netstat -pan

    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 0.0.0.0:port 0.0.0.0:* LISTEN process ID/process
    tcp 0 0 0.0.0.0:port 0.0.0.0:* LISTEN process ID/process


    ...

    where:

    • process is the name of the application
    • port is the port that is being used
    • process ID is the process ID of the process

To check the listening ports and applications with lsof:

  1. Open a shell prompt. For more information, see Opening a command or shell prompt (1003892).
  2. In the shell prompt window, run this command:

    lsof -i -P -n

    You see output similar to:

    [root@server]# lsof -i -P -n
    COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
    process process ID root 3u IPv4 3011 TCP *:port (LISTEN)
    process process ID root 3u IPv4 3011 TCP *:port (LISTEN)
    ...

    where:

    • process is the name of the application
    • port is the port that is being used
    • process ID is the process ID of the process

The output from either of these two commands shows the processes that are listening, the name of the process, and the process ID. When reviewing the information it is important to only look at the ports that are listening to ensure that you find the correct application that is listening on that port. If you do not see any process listening for a port, than this means that it is free to be utilized.

When you determine what is listening on the port, you must decide what action needs to be taken to resolve the conflict. This involves stopping a service or uninstalling the application that is utilizing the port.

For a list of ports used by VMware products, see TCP and UDP Ports required to access VMware vCenter Server, VMware ESXi and ESX hosts, and other network components (1012382).


Determining if a port is in use by an application or process on a virtual machine (2024)
Top Articles
What to feed dog with giardia?
Life Coach Salary: How Much Do Life Coaches Make? [2024]
Www.mytotalrewards/Rtx
Www.1Tamilmv.cafe
Regal Amc Near Me
Craigslist Motorcycles Jacksonville Florida
What to Serve with Lasagna (80+ side dishes and wine pairings)
Terraria Enchanting
CKS is only available in the UK | NICE
Cumberland Maryland Craigslist
Pike County Buy Sale And Trade
WK Kellogg Co (KLG) Dividends
123 Movies Babylon
Derpixon Kemono
Ssefth1203
Culvers Tartar Sauce
RBT Exam: What to Expect
10-Day Weather Forecast for Florence, AL - The Weather Channel | weather.com
Idaho Harvest Statistics
Harem In Another World F95
Jinx Chapter 24: Release Date, Spoilers & Where To Read - OtakuKart
ARK: Survival Evolved Valguero Map Guide: Resource Locations, Bosses, & Dinos
Violent Night Showtimes Near Amc Fashion Valley 18
iZurvive DayZ & ARMA Map
Craigslist In Visalia California
Georgetown 10 Day Weather
Mail.zsthost Change Password
Iroquois Amphitheater Louisville Ky Seating Chart
Tips on How to Make Dutch Friends & Cultural Norms
Optum Urgent Care - Nutley Photos
Jeffers Funeral Home Obituaries Greeneville Tennessee
Pirates Of The Caribbean 1 123Movies
Scheuren maar: Ford Sierra Cosworth naar de veiling
A Man Called Otto Showtimes Near Cinemark University Mall
Japanese Emoticons Stars
Prévisions météo Paris à 15 jours - 1er site météo pour l'île-de-France
Brenda Song Wikifeet
Breckie Hill Fapello
Craigslist Red Wing Mn
Truckers Report Forums
Louisville Volleyball Team Leaks
Why Gas Prices Are So High (Published 2022)
Today's Gas Price At Buc-Ee's
Collier Urgent Care Park Shore
Latest Nigerian Music (Next 2020)
How to play Yahoo Fantasy Football | Yahoo Help - SLN24152
Courtney Roberson Rob Dyrdek
Kate Spade Outlet Altoona
18443168434
Craigslist Monterrey Ca
Invitation Quinceanera Espanol
Dinargurus
Latest Posts
Article information

Author: Dong Thiel

Last Updated:

Views: 6170

Rating: 4.9 / 5 (79 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Dong Thiel

Birthday: 2001-07-14

Address: 2865 Kasha Unions, West Corrinne, AK 05708-1071

Phone: +3512198379449

Job: Design Planner

Hobby: Graffiti, Foreign language learning, Gambling, Metalworking, Rowing, Sculling, Sewing

Introduction: My name is Dong Thiel, I am a brainy, happy, tasty, lively, splendid, talented, cooperative person who loves writing and wants to share my knowledge and understanding with you.