Skip to content
Snippets Groups Projects
TcpExample1TerminalLog.txt 1.19 KiB
Invocation instructions:
1. run/debug TcpExample1Telnet.java
2. console:  nc     localhost 2317
 alternate:  telnet localhost 2217

Program responses:

===================================================
run:
TcpExample1Telnet has started and is waiting for a connection.
  enter (telnet localhost 2317) or (nc localhost 2317)...
This server response was written by server TcpExample1.
TcpExample1 completed successfully.
BUILD SUCCESSFUL (total time: 16 seconds)

===================================================
netcat window:

brutzman@DESKTOP-2S09UKA /cygdrive/c/Program Files/NetBeans_11.0/bin
$ nc localhost 2317
This client response was written by server TcpExample1.

===================================================
Telnet window:

don@it154928 /cygdrive/c/Program Files/NetBeans 8.2
$  telnet localhost 2317                                                                                                                                                                                            
Trying ::1...
Connected to localhost.
Escape character is '^]'.
This client response was written by server TcpExample1.
Connection closed by foreign host.
===================================================