LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Using socat (https://www.linuxquestions.org/questions/linux-networking-3/using-socat-4175500441/)

the_gripmaster 04-03-2014 08:25 AM

Using socat
 
Code:

root@vm01:~# nc -vz www.google.com 80
Connection to www.google.com 80 port [tcp/http] succeeded!
root@vm01:~#

What is the equivalent command using socat?

Thanks.

cliffordw 04-04-2014 01:25 AM

Hi,

How about this:

Code:

socat -d -d /dev/null TCP4:www.google.com:80

the_gripmaster 04-05-2014 01:36 PM

Quote:

Originally Posted by cliffordw (Post 5146365)
Hi,

How about this:

Code:

socat -d -d /dev/null TCP4:www.google.com:80

It works but an overkill :)


All times are GMT -5. The time now is 02:11 PM.