Invocation instructions: 1. run/debug TcpExample2ConnectionCounting.java 2. Windows: ipconfig MacOS: ifconfig 3. Windows: telnet localhost 2317 MacOS: nc localhost 2317 Program responses: =================================================== run-single: TcpExample2ConnectionCounting has started and is waiting for a connection. help: https://savage.nps.edu/Savage/developers.html#telnet Windows ipconfig (or Mac ifconfig) indicates current IPv4_Address (for example local wireless IP address) Windows enter (telnet localhost 2317) or Mac enter (nc localhost 2317) for loopback operation, or Windows enter (telnet IPv4_Address 2317) or Mac enter (nc IPv4_Address 2317) for LAN operation TcpExample2ConnectionCounting server standing by... This server response was written by server TcpExamples.TcpExample2ConnectionCounting Socket pair (server, client): (( /172.20.154.38, 2317 ), ( /172.20.153.125, 55424 )) got another connection, #1 This server response was written by server TcpExamples.TcpExample2ConnectionCounting Socket pair (server, client): (( /172.20.154.38, 2317 ), ( /172.20.153.125, 55425 )) got another connection, #2 This server response was written by server TcpExamples.TcpExample2ConnectionCounting Socket pair (server, client): (( /172.20.154.38, 2317 ), ( /172.20.153.125, 55426 )) got another connection, #3 This server response was written by server TcpExamples.TcpExample2ConnectionCounting Socket pair (server, client): (( /172.20.154.38, 2317 ), ( /172.20.153.125, 55427 )) got another connection, #4 This server response was written by server TcpExamples.TcpExample2ConnectionCounting Socket pair (server, client): (( /172.20.154.38, 2317 ), ( /172.20.153.125, 55428 )) got another connection, #5 This server response was written by server TcpExamples.TcpExample2ConnectionCounting Socket pair (server, client): (( /172.20.154.38, 2317 ), ( /172.20.154.38, 49308 )) got another connection, #6 =================================================== $ telnet localhost 2317 This client response was written by server TcpExamples.TcpExample2ConnectionCounting You were connection #6, by my count Connection to host lost. ===================================================