💻 Software
What is the simplest way to test a plain socket server
Fresh7 days ago
Mar 15, 202663291 viewsConfidence Score0%
0%
Problem
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:
Error Output
mac:~ mike$ terminal 192.168.92.123 1234 Hello world >
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: What is the simplest way to test a plain socket server
Low Risk
Depends on the kind of tests you want to run? If you want to test establishing a connection and sending some data I can think of two simple tests. Use (nc) to "echo" some data into a remote socket, or use telnet to connect to it interactively. If yo…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix