ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How To Test Network Connectivity with netcat utility in VMware environments

By Vladan SEGET | Last Updated: April 26, 2025

Shares

One of the testing tools for VMware networking is netcat. We have a post which explains the basics of vmkping command here – How To Test Network Connectivity with a vmkping command in VMware environments. Check it out. Today's post is called How To Test Network Connectivity with netcat utility in VMware environments and we'll explore some possibilities we have with netcat.

Netcat is used to verify connectivity on a specific remote port(s). This command is especially useful in environments where you have a firewall between vCenter and ESXi host or between each ESXi host(s).

Netcat can do much more than that, but we'll focus mainly on the use for VMware environments, where we want to check connectivity with a remote host at a particular port. It can be for example a vMotion port 8000 which we want to test.

Netcat Definition:

nc is the command which runs netcat, a simple Unix utility that reads and writes data across network connections, using the TCP or UDPprotocol. It is designed to be a reliable “back-end” tool that can be used directly or driven by other programs and scripts. At the same time, it is a feature-rich network debugging and exploration tool, since it can create almost any kind of connection you would need and has several interesting built-in capabilities.

Source link

As you can see, it's a command with multiple possibilities. Let's have a look at the syntax and how to get help.

We will have a look at the syntax of the netcat command for open ports:

nc -z destination_ip destination_port

Example:

nc -z 10.10.4.21 443

it will test if the remote host at 10.10.4.21 can be reached at port 443

You can also test multiple ports or range.

Range, for example:

nc -z 10.10.4.21 443-9443

Multiple ports, for example:

nc -z 10.10.4.21 80 443 9443

You can also add a timeout value:

-w (wait)

Example:

nc -w 1 -z 10.10.4.21 443-480

Netcat can do more than that. You can

How to Get Help?

Example:

nc -h

easy….

There are quite a lot of port open, for incoming or outgoing communications, on VMware ESXi. To know them all? It depends which services are configured within your environment. Whether you have a vMotion activated, you'll certainly want to check port 8000.

Whether you need to check communication for VSAN transport service, you'd want to check connection through the port 2233. And so on, so the best is to check Incoming and Outgoing Firewall Ports for ESXi Hosts VMware documentation page.

Most popular VMware vSphere Editions for Small business

Differences between Essentials and Essentials PLUS below. As you can see Essentials does not have High Availability (automatic VM restart), vMotion, backup software (VDP) or possibility to add VSAN as shared storage option (separate licensing option – per physical CPU).

vSphere Essentials Kits

The vSphere Essentials is good for very small clients and clients who do not really need availability. Clients which can afford to stay “offline” for a day while doing hardware maintenance.

On the other hand, having the possibility to migrate your VMs to another host and do host maintenance or patching, without interruption, gives you a real advantage. This can be done during business hours and users can continue to work.

You'll need vSphere Essentials Plus for that. If there is an unplanned hardware failure, vSphere High Availability (HA) can restart automatically those VMw which failed when the host failed. Those VMs are automatically restarted on other hosts which are part of VMware cluster. There is small downtime during which the system figures out what the host has failed and which are the hosts that are able to start the failed VMs. Once this automatic decision is taken, the VM boots up. The whole process is completely automatic and acts without the admin’s intervention.

Both above are limited to 3 Hosts only. If you need more VMs and more hosts, the vSphere Standard is your choice.

vSphere Tips:

  • How to Configure VMware High Availability (HA) Cluster
  • What is VMware vMotion?

More ESXi CLI commands:

  • ESXi CLI Networking commands
  • ESXi Commands List – Getting Started 
  • ESXi Commands List – Snapshot Deletion Monitoring
  • ESXi Commands List – Storage

More from ESX Virtualization

  • What is VMware vMotion?
  • How to Patch vCenter Server Appliance (VCSA) – [Guide]
  • VCP6.5-DCV Objective 7.1 – Troubleshoot vCenter Server and ESXi Hosts
  • Free Tools VMware
  • How To Upgrade ESXi 6.x to 6.7 via ISO
  • VMware Tools Offline VIB for ESXi Host – Bundle Download and Install
  • What is ESXi Compatibility Checker?

Stay tuned through RSS, and social media channels (Twitter, FB, YouTube)

Shares
Vote !

| Filed Under: How To, Server Virtualization, Tips Tagged With: How To Test Network Connectivity with netcat utility in VMware

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Mirek says

    January 17, 2019 at 5:09 pm

    Thanks. Btw, small typo:
    it will test if the remote host at 10.10.4.13 can be reached at port 443 –> should be it will test if the remote host at 10.10.4.21 can be reached at port 443 😉

  2. Vladan SEGET says

    January 17, 2019 at 6:20 pm

    Diky za korekci -:) Thanks for the correction.

  3. Arun Kumar says

    April 25, 2020 at 8:12 pm

    Hello Vladan,

    I am Running (nc -z targetip port) command on ESXi 6.5 but, it is neither giving any error nor success message. The cusrsor returns to its prompt without any message.

    Apart from nc is there any other command i can use to test the port on ESXi host

    Could you help where am i doing wrong.

  4. Mike Schreiner says

    May 19, 2020 at 9:44 pm

    I get the exact same thing. it goes back to the prompt.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in