Check if a Port Is Open on a Remote Server
nc -z -w 200 18.104.22.168 6379; echo $?
nc -z -w 200 codesapling.com 6379; echo $?
If it returns
0 that means port is open, if
1 port is closed.
This takes a little bit of time. Be patient :)