Create a Tchat App between computer using JAVA, 100% working

How to create a chat server between several computers with JAVA?

To realize this project you need to:
1) Install JAVA, 2) Configure JAVA, 3) Install Blue J, 4) Download the  Tchat project here:https://play.google.com/store/apps/details?id=jbej90.automation.test.educaTech_Haiti
5) Turn of FIREWALL on two computers 6) Create a local network between two computers

N.B:(Once you download the app, clic on video, clic on button named TCHATSERVER): 


Let's start:

STEP 1: Open Cmd in Administrator mode (Windows + x + a)

STEP 2:
Type this command line: netsh wlan set hostednetwork mode = allow ssid = TchatServer key = 12345678
Then Start Network with this command: Netsh wlan start hostednetwork

Connect to the network we just created (TchatServer)
Enter the password (12345678)

STEP 3:
Once the connection is established, now we will make sure to put both PCs on the same IP address range
On the computer that serves as the Server. Open Control Panel, Network and Internet, Network and Sharing Center,
Click on the local network (TchatServer) to check on which address range one is:
Local area network, Properties, Internet Protocol version 4, Properties.
The address range is: 192.168.137.1
Once you create a local network to connect two computers
1) A computer will serve as Server for the Network
2) The second will serve as Client for the Network
3) The Pc Server must have the following Ip address: 192.168.137.1
4) The Client PC must have the following Ip address: 192.168.137.11 with a Preferred Server Dns of: 192.168.137.1


So on the other client PC after connecting to the network (TchatServer)
We are going to visit:
1) Control Panel, Network and Internet, Network and Sharing Center
2) To put the Pc Client on the same address range as the Server, do:
Click on Local Network (TchatServer):
Local area network, Properties, Internet Protocol version 4, Properties.
Enter the same ip address as the Server address. that is to say:
192.168.137.2
Be careful if the first address is: 192.168.137.1 for the Server
The last digit of the address of the client PC must be different, therefore: 192.168.137.2
The Ip address of the Preferred Dns Server of the client Pc must be the same Main Server Ip Address. So:
192.168.137.1
The Ip address once change, do ok to Save.

STEP 4:
Now we will test whether the two PCs (Server, Client) are connecting properly:
To do this open cmd on the client PC, and do: Ping -a 192.168.137.1

The result must be: Reply from 192.168.137.1 bytes = 32 time <1ms ttl = 128


STEP 5:
First: on the PC SERVER, open Blue J, launch the Project Folder Called: TCHATSERVERCLIENTINTERFACE
download this Project here(Once you download the app, clic on video, clic on button named TCHATSERVER): https://play.google.com/store/apps/details?id=jbej90.automation.test.educaTech_Haiti
Now,
RUN the class named: Chat_server

A Windows will appear
Second: On the PC CLIENT:open Blue J, launch the Project Folder Called: TCHATSERVERCLIENTINTERFACE
download this Project here(Once you download the app, clic on video, clic on button named TCHATSERVER): https://play.google.com/store/apps/details?id=jbej90.automation.test.educaTech_Haiti

Open the class named Chat_server, serach for this code in the image below in replace this IP address: 127.0.0.1 by: 192.168.137.1

RUN the class named: Chat_client

A Windows will appear.

Start to write you message:

N.B: 
1) Watch the TUTORIEL VIDEO HERE:https://www.youtube.com/watch?v=H1L9TaDv-fQ
2) Download the Project here:https://play.google.com/store/apps/details?id=jbej90.automation.test.educaTech_Haiti
3) Ask your question in the comment section below, or email us: jbej90@gmail.com



Commentaires

Posts les plus consultés de ce blog

Comment Creer un SERVEUR de Tchat entre Plusieurs ordinateur avec JAVA

Why you should never put all your files on a single Web Host

Pourquoi il ne faut jamais mettre tous ses fichiers sur un seul Herbergeur WEB