You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to Test Port[TCP/UDP] Connectivity from a Linux Server

in Linux 1 comment

Applies To:

Oracle Cloud Infrastructure

Oracle Linux

Goal

Procedure to check port [TCP/UDP] connectivity from a Linux server

Solution

Telnet and nc are common tools used to test port connectivity from Linux server. Telnet can be used to test tcp port connections, whereas nc can be used to test both tcp/udp ports connectivity.
Make sure telnet and nc tools are installed on the Linux server you are trying to test connectivity.

# yum install nc
# yum install telnet

Testing tcp port connectivity:

Syntax: telnet <hostname/IP address> <port number>

Example of successful connection:

# telnet <ip address> 22
Trying <ip address>...

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!