tcp-based-echo-server-in-node.js
How to Run the Server:
Run the following command on the terminal:
node server {port}
Example:
node server 4000
How to Run the Client:
Run the following command on the terminal:
node client {ip} {port}
Note: ip is the ip address of the server and port is the port number of server socket that it is bound to.
Example:
node client 192.168.1.1 4001
How to Close the Server:
press e and then press the enter key on the server terminal.
How to Close a Client:
press e and then press the enter key on the client terminal.
On this page
Contributors
Created August 21, 2022
Updated August 21, 2022