chat application using java sockets (with GUI)

  Рет қаралды 598,583

einstein06

einstein06

Күн бұрын

Пікірлер: 282
@hansolo8263
@hansolo8263 9 жыл бұрын
best chat app i've found so far,other people's coding either too complicated or is spilited too many classes.good job man
@damiaotiktok023
@damiaotiktok023 Жыл бұрын
Simplesmente fantástico, não é fácil encontrar um tutorial assim bem didático. Outros ensinam mais complica , e esse foi o único que encontrei que faz do jeito que eu procurava, obrigado, e não pare continue com seu trabalho pois é muito bom no que faz, valeu
@yush7820
@yush7820 7 жыл бұрын
Thank you so much! You method is much easier that what I was taught in my class...
@MinhLe1999pro
@MinhLe1999pro 2 жыл бұрын
Is a simple and very good. I have fun and I'm very happy
@ashagireadinew9151
@ashagireadinew9151 6 жыл бұрын
Nice one continue like this . show for multi client and server
@rogue8275
@rogue8275 11 ай бұрын
+rep for u doing it 9 years ago 👏
@SyaifulMaulanaAbbidin
@SyaifulMaulanaAbbidin 8 жыл бұрын
thank you for sharing, i have follow your tutorial and it works. :)
@adriancortes8224
@adriancortes8224 6 жыл бұрын
this perfect, thanks you very much!! pd: hablo español xD
@smashfanx7560
@smashfanx7560 5 жыл бұрын
Yo Tambien we
@josuedavidguerrabolon8752
@josuedavidguerrabolon8752 3 жыл бұрын
X2 xd
@madison_master
@madison_master 7 жыл бұрын
Thank you very much, very usefull to make my college homework. Thanx again.
@atulsharma8726
@atulsharma8726 6 жыл бұрын
thanks! found this very simple yet elegant code!
@eltonruco3598
@eltonruco3598 4 жыл бұрын
Simples and diret to the point, thanks man
@verafranccisconi4515
@verafranccisconi4515 9 жыл бұрын
Great tutorial, thank you so much.
@informativevideos8190
@informativevideos8190 2 жыл бұрын
Thankyou so much for helping
@chutheingikyaw6049
@chutheingikyaw6049 Жыл бұрын
Thank you for your sharing. I would like to know how to write multiple client chatbot.
@fayazafridi2170
@fayazafridi2170 7 жыл бұрын
Thank you very much sir you are to good..........
@artios6
@artios6 7 жыл бұрын
Good thing you left ur micriphone to record
@michalkolnik4207
@michalkolnik4207 7 жыл бұрын
shut the fuck up
@ethanadams4700
@ethanadams4700 6 жыл бұрын
classic reply
@kennethcastrodes8361
@kennethcastrodes8361 5 жыл бұрын
@@michalkolnik4207 how to shut in typing?
@AngelCintiaRockgirl
@AngelCintiaRockgirl 4 жыл бұрын
Yeah, sounds like gridlock in Punjabi.
@АлександрЖарков-у9ш
@АлександрЖарков-у9ш 4 жыл бұрын
You knocked it, sir. Thanks
@RuleSuccess.
@RuleSuccess. 3 жыл бұрын
Thanks so much :)
@KiiDTakesOveR
@KiiDTakesOveR 8 жыл бұрын
you saved me, i love you
@pradyumnabharadwaja8237
@pradyumnabharadwaja8237 2 жыл бұрын
Amazing one!! Would have been nice if you talked a little bit because you are quite fast in typing and its hard to follow. But that aside, Its a great and easy way. Thank you!!
@mehakbatra6194
@mehakbatra6194 2 жыл бұрын
Have u noted the code... If yes then can u share witg mw
@pradyumnabharadwaja8237
@pradyumnabharadwaja8237 2 жыл бұрын
@@mehakbatra6194 yes sure please share your mail id if possible
@pradyumnabharadwaja8237
@pradyumnabharadwaja8237 2 жыл бұрын
@@luckyrehman2549 sure just drop your mail id
@pradyumnabharadwaja8237
@pradyumnabharadwaja8237 2 жыл бұрын
@@luckyrehman2549 yup sure I will just drop your mail ID and first thing in the morning I'll mail it to you
@pradyumnabharadwaja8237
@pradyumnabharadwaja8237 2 жыл бұрын
@@luckyrehman2549 sure but how will you?
@TheAnnaKarpinska
@TheAnnaKarpinska 6 жыл бұрын
Thanks for the detailed description
@izaacAL
@izaacAL 4 жыл бұрын
hahahaha
@amitgupta5026
@amitgupta5026 7 жыл бұрын
thanks bor...........its working ..............
@alexogirma3130
@alexogirma3130 3 жыл бұрын
thanks you.it is interesting
@renesitopena1870
@renesitopena1870 6 жыл бұрын
gracias brother por tu aporte me funciono
@TONYSTARK-uu3eq
@TONYSTARK-uu3eq 5 жыл бұрын
Sir i made the program on my system and its working fine as shown. Now i want to use my system as server and other computer(s) in same Local network as client(s) .please guide me step by step.I will highly appreciate your help.Thank you
@nichunaizam
@nichunaizam 5 жыл бұрын
you should port forward your external address then connect the client with the external address of yours
@TONYSTARK-uu3eq
@TONYSTARK-uu3eq 5 жыл бұрын
@@nichunaizam thanku for your reply. I cheked the fort forwarding tutorial and i port forwarded my IPV4 adrees and i was able to run the server on one machine and client on the other and the application was working fine. BUT there is a smalll problem i am able to run server only on a certain computer and client on others ,i.e. when i try to make some other computer as server then the server does run but clients are not able to connect . The clients are able to connect to server only when it runs on a partucular system. How can this problem be solved. I will appreciate your reply @Nichu Naizam
@sengulbayrak6073
@sengulbayrak6073 6 жыл бұрын
This video is very useful. Thank you.
@petersimthobele
@petersimthobele Жыл бұрын
Thank you Sir :)
@reksafitrananda7704
@reksafitrananda7704 8 жыл бұрын
Good tutorial. Thanks
@brenocarvalho7643
@brenocarvalho7643 4 жыл бұрын
Very Good!
@alejandromemi4737
@alejandromemi4737 9 жыл бұрын
Gracias de verdad me sirvió de mucho.
@Capta1nJack
@Capta1nJack 4 жыл бұрын
3:45 its corona time!
@DheerajKambleOfficial
@DheerajKambleOfficial 6 жыл бұрын
thankyou very much sir !!!!
@phungnguyen1154
@phungnguyen1154 6 жыл бұрын
hey bro . mine code not working , can you help me ? i want source code , please bro
@DheerajKambleOfficial
@DheerajKambleOfficial 6 жыл бұрын
@@phungnguyen1154 tell me what error are uhhhh getting ????
@phungnguyen1154
@phungnguyen1154 6 жыл бұрын
@@DheerajKambleOfficial oh thank you
@phungnguyen1154
@phungnguyen1154 6 жыл бұрын
notepad.pw/cs7m3bw Pls , help me bro :(
@r4ng3l56
@r4ng3l56 3 жыл бұрын
beautiful
@zubairrehmani6911
@zubairrehmani6911 4 жыл бұрын
Would be better with a voice over actually describing what you are doing!
@fernandopestillo3817
@fernandopestillo3817 Жыл бұрын
Jah Pod Al Mossa?
@kaylinnaidoo8589
@kaylinnaidoo8589 3 жыл бұрын
Thank you
@online15education
@online15education 4 жыл бұрын
Great, please tell me how to handle one to one and one to many client. like: if two person join this how to show all the client then when add new one client, so he want to chat selected person not all, i hope you understand my query Sir.
@GhostLetsHack
@GhostLetsHack 8 жыл бұрын
Hello, what for a Server you need to make this public? I will make this chatmessenger public.
@muhammadjawadliaqat8063
@muhammadjawadliaqat8063 2 жыл бұрын
love you...
@CookingMaxMobileGame
@CookingMaxMobileGame 8 жыл бұрын
You must be explaining what you are doing really
@andrekelvin2318
@andrekelvin2318 6 жыл бұрын
I would like to use this same approach but am using Javafx with a controller class and scene builder with fxml. How will this be done in javafx
@Learn_with_cosmos
@Learn_with_cosmos 9 жыл бұрын
Good tutorial but the noise of the beeping cars is annoying. In the United states people don't beep just to beep. lol! There must be no traffic lights or is just the culture people are used the noise? Regardless. I like the tutorial. Hahaha
@qeerooalkharji4391
@qeerooalkharji4391 8 жыл бұрын
good
@amitgupta5026
@amitgupta5026 7 жыл бұрын
sir plz ........use microphone while making video............which help us to understand easily......
@anhvotranquoc7233
@anhvotranquoc7233 3 жыл бұрын
if i want to put application for more people use.(using app on wan, internet..). Please answer my question
@panjimunthe1542
@panjimunthe1542 8 жыл бұрын
wowwwwww youtube youtube lebih dari tipi boooooom
@anhtuanle5691
@anhtuanle5691 9 жыл бұрын
nice! thank so much
@kernadan000
@kernadan000 8 жыл бұрын
thanks for the tutorial
@einstein0653
@einstein0653 9 жыл бұрын
Complete Code you can found at ramanji.xyz/chats.zip
@hamelhoussem415
@hamelhoussem415 9 жыл бұрын
+einstein06 SIR the download key does not work please update it!!
@loopdee205
@loopdee205 9 жыл бұрын
+einstein06 can you text friends on another computer?
@IzetDK
@IzetDK 8 жыл бұрын
+loop dee No, because you are using Localhost(127.0.0.1) which is your own network,
@loopdee205
@loopdee205 8 жыл бұрын
+IzetDK what about just another computer connected to the same network?
@IzetDK
@IzetDK 8 жыл бұрын
(Im not 100% sure) But i think you will need to adjust the program so you can type in the servers local ip instead of 127.0.0.1, and that should work
@arpitjain8907
@arpitjain8907 4 жыл бұрын
thanks bro ..
@derkoennerlp3215
@derkoennerlp3215 6 жыл бұрын
thanks sm great tut
@sultanaliyi-u9y
@sultanaliyi-u9y 2 күн бұрын
thank u
@rabiashah9686
@rabiashah9686 7 жыл бұрын
how did u determine the ip address. is this the ip address of your computer right now? or just give it any ip address that we wish?
@choppy627
@choppy627 9 жыл бұрын
how can i send messages on a different PC but using the same project?
@richardmiscik9203
@richardmiscik9203 7 жыл бұрын
I know this comment is 1 year old Use your local IP address, ex. 192.168.0.1 or Use your external address, you can find it at www.whatismyip.com If you use your external IP address, DO NOT forget to forward it. Also, turn your firewall off on the server PC, or make an exception
@ufoloky
@ufoloky 7 жыл бұрын
How can I do this? In what line I need to put my address?
@ngavuong5418
@ngavuong5418 6 жыл бұрын
thank you so much,!!
@lupitamunoz996
@lupitamunoz996 8 жыл бұрын
Gracias muy util!!!
@kashinnair2465
@kashinnair2465 4 жыл бұрын
i am getting a nullpointer exception for the data output stream dout
@kEzO9O
@kEzO9O 6 жыл бұрын
thank you!
@shawjitesh
@shawjitesh 8 жыл бұрын
Thanks a lot.. :)
@abdulrhmanyahyaalkahirah5660
@abdulrhmanyahyaalkahirah5660 6 жыл бұрын
great job,but if I want to make call voice How can I do it?????
@lekhnathtimsina2638
@lekhnathtimsina2638 8 жыл бұрын
Hi einstein06, Do you need Chats.java in this application?
@omkarsatpute8952
@omkarsatpute8952 5 жыл бұрын
program build successfully but it not works
@wasiskuncoro2184
@wasiskuncoro2184 8 жыл бұрын
multi client? how?
@3erB
@3erB 6 жыл бұрын
with for or while
@harishraavi3336
@harishraavi3336 6 жыл бұрын
3erB where i use for loop will u plzz reply
@Zirzux
@Zirzux 4 жыл бұрын
@@harishraavi3336 ballz
@gauravbiyani350
@gauravbiyani350 4 жыл бұрын
Hi, I know that I am commenting too late but I am having a problem.... I did exact same code like do but in my case there is no message showing to server side when i try to send message from client and vice versa too......... I am unable to find the mistake, so please do reply.
@josephbermudez9533
@josephbermudez9533 4 жыл бұрын
I just did the code and am also having the same issue. Were you able to get a fix?
@SyaifulMaulanaAbbidin
@SyaifulMaulanaAbbidin 8 жыл бұрын
btw,, can you give some tutorial how to make this program to enable multi chat (multi threading), for example we have 1server and 2 clients can comunicate to each other.?
@papakushi
@papakushi 8 жыл бұрын
github.com/FusionDusbtepZ/chatRoom
@derkoennerlp3215
@derkoennerlp3215 6 жыл бұрын
locally, this is working very well. if i put my own ip in (not the local thing), it works as well, as long as the pcs are in the same network. but as soon as a computer in another network attempts to connect is doesnt work. what is the matter with this?
@racionator2668
@racionator2668 4 жыл бұрын
You need to port forward the specific port your set in the server application, and than give out your public adress to everxone outsife your local network
@talhanadeem8664
@talhanadeem8664 Жыл бұрын
@@racionator2668 how to find that port
@yoshan9159
@yoshan9159 2 жыл бұрын
Can please tell me what are files imported in this program because in software it's not automatically imported.
@דולבשילה
@דולבשילה 8 жыл бұрын
thanks. what can i do if there is a problem with private javax.swing.JScrollPane jScrollPane1; "illegal start of expression" ?
@saberahmed9795
@saberahmed9795 6 жыл бұрын
דולב שילה did you solve it?
@sallysaid9459
@sallysaid9459 5 жыл бұрын
Add } before it
@shotakartsivadze9487
@shotakartsivadze9487 4 жыл бұрын
Guys how can I run those Jframes on two different Computer and chat between them
@ratsec1756
@ratsec1756 4 жыл бұрын
you can port forward the socket with ngrok and then make the client connect to that
@Rockstar-pu6yn
@Rockstar-pu6yn 9 жыл бұрын
NANNAYI VARATTE
@wilkinsperez4388
@wilkinsperez4388 9 жыл бұрын
i make the same code, in the first time work very well, but when i try again not work anymore.....please helpme
@sahnounechaoucheabderrezak3739
@sahnounechaoucheabderrezak3739 4 жыл бұрын
Me too
@conceptxlabs
@conceptxlabs 9 жыл бұрын
hey ur tutorial makes me soooo angry man....coz i hv no doubt about that i hv typed the same thing as ur codings but when i type a message from server chat it doesnt displays in client chat.and even i cant get a new line using " "..plz plz plz help me if u can dude...
@conceptxlabs
@conceptxlabs 9 жыл бұрын
Farhan Dulip Lol im sorry the falt was mine coz i hv dragged jtextfield instead of jtextarea...(:\ coz we cant get a new line using jtextffield sooo that......
@dachiabuladze6550
@dachiabuladze6550 9 жыл бұрын
Farhan Dulip 2mlg4m m8
@TutorialesNew
@TutorialesNew 6 жыл бұрын
Hello friend, try changing port, for example 9000. Regards.
@tvnalad
@tvnalad 3 жыл бұрын
asmr energy tutorial
@amoulatar
@amoulatar 9 жыл бұрын
thank u sooo much
@NareshKumar-wz8tm
@NareshKumar-wz8tm 7 жыл бұрын
you should have added voice .....
@dagmaraaburto934
@dagmaraaburto934 6 жыл бұрын
Hi, I've done your code several times and the message still does not appear, what can I do?
@outerhaven6809
@outerhaven6809 9 жыл бұрын
What if there are two devices within a local area network? The other one runs the SERVER and the other one runs the CLIENT. What IP address and server sockets we use? Should we still use the default IP address which is "127.0.0.1" or IP addresses of our PC and does the SERVER and CLIENT must have always a same number of Network Socket? (eg. 1201 in the video)
@noppapadi6177
@noppapadi6177 6 жыл бұрын
All is working same, but in client, you put ip of the computer, wich is running server. The number is called port. There are many of them. Example HTTP's port number is 80. And yes, they should have same port number. The server is listening on some port. If client tries to connect to the server with wrong port, then connection cannot come.
@nameerasimran5909
@nameerasimran5909 5 жыл бұрын
where did you find the port 1201 and why did you use that specific number?
@vasafeasdas6183
@vasafeasdas6183 8 жыл бұрын
What's the deal with all those drivers outside? Why do they abuse they're horns?
@jabirkhan8897
@jabirkhan8897 6 жыл бұрын
How can i disable alr,ctrl and window key in our java application. Means when our java app is running then these keys don't perform their default tasks
@smashfanx7560
@smashfanx7560 5 жыл бұрын
I Will Do a Minecraft Chat With This
@FreiikHerrera
@FreiikHerrera 5 жыл бұрын
Secure mode/encrypted? Thanks :)
@SyedArselan
@SyedArselan 9 жыл бұрын
how to make ip address dynamic, u are using static. for example if client want to connect to the server, client must enter specific ip address. help ?
@pablomariano5396
@pablomariano5396 3 жыл бұрын
There is no error in my code, I follow all the steps you made Bro but, the message still does not appear after I click "Send". What is the solution or step that I need to do Bro? Please help me.
@mohamedmahmoud2913
@mohamedmahmoud2913 9 жыл бұрын
thanks a lot i wanna ask u some questions can u give your facbook
@luisbaja3177
@luisbaja3177 4 жыл бұрын
i am also doing this kind of project. please help me because i have errors in my projects which is non static variable cannot be referenced from static context
@PUMUDUSANJANA
@PUMUDUSANJANA 4 жыл бұрын
I also need answer for this
@mohamedayman7396
@mohamedayman7396 4 жыл бұрын
Just declare them as static
@luisbaja3177
@luisbaja3177 4 жыл бұрын
where? in the codes? thanks in advance.
@shahriaahammedfahim4363
@shahriaahammedfahim4363 5 жыл бұрын
thanks
@caionakai3134
@caionakai3134 6 жыл бұрын
love u
@swarnimamitra5501
@swarnimamitra5501 3 жыл бұрын
It shows exception and not establishing the connection
@LT-tr5wf
@LT-tr5wf 9 жыл бұрын
thnx so much
@kadiprog8865
@kadiprog8865 7 жыл бұрын
you must use threads
@hiteshyadav2298
@hiteshyadav2298 5 жыл бұрын
din And dout giving nullpointer Exception in eclipse GUI . how to solve it??
@nichunaizam
@nichunaizam 5 жыл бұрын
after sending the data do din.flush(); the same to dout.flush();
@mathrocha94
@mathrocha94 9 жыл бұрын
I can not do run of the frames, the netbeans not leave. what to do?
@hamelhoussem415
@hamelhoussem415 9 жыл бұрын
SIR the download key does not work please update it!!
@aburayhan5920
@aburayhan5920 7 жыл бұрын
give me source code please because this code can not work correctly (client part run properly but can not send message)
@channelprofessional7175
@channelprofessional7175 9 жыл бұрын
i have a problem in "jtextarea1.setText(jtextarea1.getText().trim()+" "+msg);" sey erreur"non-static variable jtextarea1 cannot be referenced from a static context" can you help me
@fenlol9779
@fenlol9779 9 жыл бұрын
+imad el maskaouy you have to set jtextarea1 as static. Watch again 0:41.
@channelprofessional7175
@channelprofessional7175 9 жыл бұрын
+Fenlol ok thnx my friend you are a best
@md.jamirhossain8274
@md.jamirhossain8274 9 жыл бұрын
hlw einstein06.......ur given link i can not enter....plz give the correct link where i get this program source code...
@tdvkiran
@tdvkiran 9 жыл бұрын
hey to run on different computers how to connect the server and client ? what was the ip address?
@papakushi
@papakushi 8 жыл бұрын
Port forwarding
@mehakbatra6194
@mehakbatra6194 2 жыл бұрын
Can u tell more on it
@emirugljanin
@emirugljanin 8 жыл бұрын
Download link is not working. My netbeans does not allow to use fields values in main. I get message Non-static variable cannot be referenced from static context.
@aryanpdgc
@aryanpdgc 8 жыл бұрын
make it static
@aniketdarekar6531
@aniketdarekar6531 5 жыл бұрын
i need help from u for source code
Java Socket Programming - Multiple Clients Chat
40:18
WittCode
Рет қаралды 191 М.
Java Socket Programming Client Server Messenger
16:28
WittCode
Рет қаралды 112 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Java Socket Programming 4 - Multi-client interactive sessions
23:17
David Dobervich
Рет қаралды 145 М.
Java Calculator App Development Tutorial 1 |  Swing | GUI
13:53
UMK Games
Рет қаралды 1,3 МЛН
Simple TCP Chat Room in Java
39:05
NeuralNine
Рет қаралды 102 М.
3/3 - Chatting Application | Java Project | Java Swing & Socket Programming
20:47
Java Socket Programming Part 1
14:46
David Dobervich
Рет қаралды 45 М.
Java NetBeans Tutorial | chat application in java
25:32
Mukul Saini Skills
Рет қаралды 87 М.
Socket Programming in Java One Way
12:01
Telusko
Рет қаралды 183 М.
A Deep Dive into JVM Start-Up
22:03
Java
Рет қаралды 29 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН