Uly.me

cloud engineer

  • Home
  • About
  • Archives
You are here: Home / Cloud / Testing a Network Port Connection

October 10, 2018

Testing a Network Port Connection

You can test a network port connection using the “nc” command on Linux and “telnet” on Windows.

Format:
$ nc -zv domain.com port
C:\> telnet domain.com port

$ nc -zv domain.com 80
Connection to domain.com 80 port [tcp/http] succeeded!

$ nc -zv domain.com 80 Connection to domain.com 80 port [tcp/http] succeeded!

C:\> telnet -zv domain.com 80
Connecting To domain.com...Could not open connection to the host, on port 80: Connect failed

C:\> telnet -zv domain.com 80 Connecting To domain.com...Could not open connection to the host, on port 80: Connect failed

For Telnet, if a connection is successful, it returns no message.

Filed Under: Cloud, Linux Tagged With: connection, nc, port, telnet, test

Recent Posts

  • AWS CLI Add User
  • FFMPEG Convert TS to MP4
  • Windows Boot Time
  • Mac OS Catalina
  • Set Immutable Attribute
  • AWS CLI Add Network Interface
  • Tcpdump
  • Change MTU Size
  • Tail A File in Windows Server
  • AWS ECR PushPull Policy
  • Passive FTP Firewall

Categories

  • Cloud
  • CSS
  • Git
  • HTML
  • JS
  • Linux
  • Mac
  • Misc
  • PHP
  • SVN
  • Windows
  • WP

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Tags

add apache aws aws cli bash certificate cli codeigniter create cron date delete disk dns docker ec2 efs gcp git google iam install instance laravel lightsail mac os mint mount mysql network php phpmyadmin policy s3 sdk snapshot snapshots ssh ssl time ubuntu user windows wordpress yum
  • Home
  • About
  • Archives

Copyright © 2019