checking server port connetions between machines

on remote machine:

1
 
netcat -l 22445

on the local machine

1
 
echo test > /dev/tcp//22445