How to âÂÂnc -z â with socat?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I want to get the behavior of "nc -z host port ; echo $?" with socat, since my network admins have disabled netcat. The purpose is just to test that a TCP connection is open between two servers. How would I go about doing this?
networking netcat socat nc
add a comment |Â
up vote
0
down vote
favorite
I want to get the behavior of "nc -z host port ; echo $?" with socat, since my network admins have disabled netcat. The purpose is just to test that a TCP connection is open between two servers. How would I go about doing this?
networking netcat socat nc
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to get the behavior of "nc -z host port ; echo $?" with socat, since my network admins have disabled netcat. The purpose is just to test that a TCP connection is open between two servers. How would I go about doing this?
networking netcat socat nc
I want to get the behavior of "nc -z host port ; echo $?" with socat, since my network admins have disabled netcat. The purpose is just to test that a TCP connection is open between two servers. How would I go about doing this?
networking netcat socat nc
networking netcat socat nc
asked Mar 29 '16 at 20:37
GoldfishGrenade
1124
1124
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
-1
down vote
accepted
Hi if you want check connection between server with socat try below command and refer link ..
CWsocat [options] <address> <address>
CWsocat -V
CWsocat -h[h[h]] | -?[?[?]]
CWfilan
CWprocan
try this link for better understanding..
there are other method to check the connectivity..
It's just socat's man page. Doesn't answer the question.
â user666412
Sep 13 '16 at 13:49
add a comment |Â
up vote
0
down vote
Since nc -z host port
just attempt to connect without sending any data, it should be equivalent to socat /dev/null tcp4:host:port
.
I think this can achieve your expected bahaviour with socat:
socat /dev/null tcp4:host:port > /dev/null 2>&1 ; echo $?
New contributor
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
-1
down vote
accepted
Hi if you want check connection between server with socat try below command and refer link ..
CWsocat [options] <address> <address>
CWsocat -V
CWsocat -h[h[h]] | -?[?[?]]
CWfilan
CWprocan
try this link for better understanding..
there are other method to check the connectivity..
It's just socat's man page. Doesn't answer the question.
â user666412
Sep 13 '16 at 13:49
add a comment |Â
up vote
-1
down vote
accepted
Hi if you want check connection between server with socat try below command and refer link ..
CWsocat [options] <address> <address>
CWsocat -V
CWsocat -h[h[h]] | -?[?[?]]
CWfilan
CWprocan
try this link for better understanding..
there are other method to check the connectivity..
It's just socat's man page. Doesn't answer the question.
â user666412
Sep 13 '16 at 13:49
add a comment |Â
up vote
-1
down vote
accepted
up vote
-1
down vote
accepted
Hi if you want check connection between server with socat try below command and refer link ..
CWsocat [options] <address> <address>
CWsocat -V
CWsocat -h[h[h]] | -?[?[?]]
CWfilan
CWprocan
try this link for better understanding..
there are other method to check the connectivity..
Hi if you want check connection between server with socat try below command and refer link ..
CWsocat [options] <address> <address>
CWsocat -V
CWsocat -h[h[h]] | -?[?[?]]
CWfilan
CWprocan
try this link for better understanding..
there are other method to check the connectivity..
answered Mar 29 '16 at 21:03
Vinood NK Maheshwari
313110
313110
It's just socat's man page. Doesn't answer the question.
â user666412
Sep 13 '16 at 13:49
add a comment |Â
It's just socat's man page. Doesn't answer the question.
â user666412
Sep 13 '16 at 13:49
It's just socat's man page. Doesn't answer the question.
â user666412
Sep 13 '16 at 13:49
It's just socat's man page. Doesn't answer the question.
â user666412
Sep 13 '16 at 13:49
add a comment |Â
up vote
0
down vote
Since nc -z host port
just attempt to connect without sending any data, it should be equivalent to socat /dev/null tcp4:host:port
.
I think this can achieve your expected bahaviour with socat:
socat /dev/null tcp4:host:port > /dev/null 2>&1 ; echo $?
New contributor
add a comment |Â
up vote
0
down vote
Since nc -z host port
just attempt to connect without sending any data, it should be equivalent to socat /dev/null tcp4:host:port
.
I think this can achieve your expected bahaviour with socat:
socat /dev/null tcp4:host:port > /dev/null 2>&1 ; echo $?
New contributor
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Since nc -z host port
just attempt to connect without sending any data, it should be equivalent to socat /dev/null tcp4:host:port
.
I think this can achieve your expected bahaviour with socat:
socat /dev/null tcp4:host:port > /dev/null 2>&1 ; echo $?
New contributor
Since nc -z host port
just attempt to connect without sending any data, it should be equivalent to socat /dev/null tcp4:host:port
.
I think this can achieve your expected bahaviour with socat:
socat /dev/null tcp4:host:port > /dev/null 2>&1 ; echo $?
New contributor
New contributor
answered 10 mins ago
zevoid
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f272971%2fhow-to-nc-z-address-with-socat%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password