Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 1.21 KB

README.md

File metadata and controls

68 lines (46 loc) · 1.21 KB

Client-Server communication using TCP connection

If you want to try this out (only Windows user's)

  1. Download the zip file in the download folder
  2. Extract the files
  3. Open command prompt, locate (using cd) and run the server.exe file

Note : turn off 'real time protection' in your settings if it doesnt work

use commands :

Default port set to 9090

server 

or

For custom port

server <port number>

server cmd

  1. Open command prompt once more on the same or another device and run the client.exe file

Note : If same device use default or loopback connection

use commands :

Connects to the default port(9090) in a loopback IP

client 

or

Connects to a specific port in loopback IP

client loopback <port number>

loopback connection

or

Note : Use this if you want to communicate with another device in the same LAN connection

client <server ip address>:<port number server is listening>

custom socket

  1. Now, client-server can communicate!

chat

  1. You can end the chat by typing 'leave'

end chat