If you want to test connection (port listen) to another server you can use netcat. On linux will be ncat
command & on windows will be ncat
command.
- Installation
apt install -y netcat
- Usage
#### for TCP
nc -vz localhost 80
#### for UDP
nc -vzu localhost 80
- You can install package from download manually from https://nmap.org/dist/nmap-7.92-setup.exe
- Usage
#### for TCP
ncat -v -n localhost 80
#### for UDP
ncat -v -n -u localhost 80
C:\Users\Administrator>ncat -v -n -u 10.0.3.140 12530
Ncat: Version 7.92 ( https://nmap.org/ncat )
Ncat: Connected to 10.0.3.140:12530.
C:\Users\Administrator>ncat -v -n 10.0.3.140 12530
Ncat: Version 7.92 ( https://nmap.org/ncat )
Ncat: No connection could be made because the target machine actively refused it. .
You will receive blank message on Linux netcat, this ussually appear on Linux with UDP not connection case.