18
6
I have a server which listens on a socket for incoming connections and outputs a welcome text ("Hello world"). What is the simplest way to test this with plain tools from the operating system (here OS X)? I'd imagine something like a good old RS232-terminal application:
mac:~ mike$ terminal 192.168.92.123 1234
Hello world
>
This is a port, not a socket. If you actually want to test a socket, you should use
nc -U
on OS X and on Linux, usesocat
, e.g.socat - UNIX-CONNECT:/tmp/memcached.sock
. – Simon Woodside – 2016-06-09T06:06:50.720