You're explanation is far better than that of my lecturers! I don't think I'd be able to actually build my required multi user chatboard without this tutorial. thanks alot
YOUR EXPLANATION IS REALLY AWESOME!!! I'm working on this group chat application and being a student I've so many doubts... Your video is the only one that I find is very easy to understand....
...and that is really NOT a common thing in the world of IT : a lot of people who study or work in IT can do a lot of "wonderful" things but the 90% of them are totally UNABLE to explain what they're doing and how they're doing it CLEARLY. I think that's a great limit.
Hello dear Jim, I´m learning java and English ( at my own ), but i found this video very interesting and complete, thanks for your effort to do that, it was a really simply but excellent explanation of this topic. Now i'm able to modify my own code to make a server Apk- I'll let you a big like to all your vids.
for those who use windows: end your string with " ", not only " ". But the best way is to use System.lineSeparator(); instead of hard-coding. I recommend you to read about CRLF and how line separation works on Windows and Unix systems.
I was just looking at the comments about to ask why he needed the . This is my first look at creating a server. What is the reasoning for needing it there? Also for the .getBytes()??
Hello sir and everybody...my question is... Can you please tell me, is this possible that we send msg from one machine to another machine on different location...? Because with me ,it is only working on the localhost, not on the other computer's ip address on different location... Please reply...🙏
@@SL3APYH3AD11 and what about on different network, because on same network of mobile hotspot, two pc were able to communicate with each other... but How can i connect with public ip address of a device...?
Yes, the server can be anywhere as long as it is reachable by the client. This means that server will need a public internet facing IP address (instead of an internet network address such as 192.168.*.* or 10.*.*.*). Also make sure to configure the firewall to open access to the server port.
Everything is functioning, however I get the error "Connection refused" on my macbook upon entering "telnet localhost 8818". Is this a common problem? How could I potentially fix it?
Java does NOT have any shotcuts whatshoever. if you want shortcuts you are gonna need an editor of code (IDE for short). I raccomend taking a looking at: www.eclipse.org/ www.jetbrains.com/idea/ They are 2 very good editors
Hi. I have a question about reader.readLine() method, because something doesn't feel right for me. Is this method readLine() works similarly to socket.accept() method in the sense of waiting for input? Because I don't understand how this while loop seems to wait until you write something into the console and after you write your line and line is outputed the line String doesn't become null and while loop doesn't end. Normally it should end before you even start writing because this function is executed after you connect to the server. So something is clearly waiting for input is it readLine()? Or maybe I'm missing something?
reader.readLine() method will block and won't return until either a newline character ' ' or the underlying input stream is closed. readLine() will return either the whole string line or NULL if the underlying stream is closed.
Hello Jim, just wanted to say very great series! and well explained! I tried going to the link in the description to get hold of the source code, so i can have a play around with it, but the site doesnt load correctly. Is there another link for this please?
Hello Jim, first of all thank you for a great video. My question is what can you reccomend to start using today for a simple network testing. In this video you used telnet. Is there any available equivalent or telnet is fine for such thing?
I normally use telnet to test if I can connect to a specific port and send data to it. Telnet is good when for text based protocols like regular lines of text, json and xml. Binary data would require something else. There are specific program for testing such as using cURL for HTTP requests.
sir its very useful for me.. i'm writing the same code.. bt i use ObjectOuputStream & ObjectInputStream bt it shows some error.. when i send msg its not working.. i trying to findout the bug i failed..
Your work is awesome and appreciative thank you for that... I am working on same project(personal) i wanna make client to able to send message to multiple servers HOw do i do that?? some hints will work fine!
When using web development frameworks such as React JS, you will want to use WebSockets to create a bi-directional client/server connection. Take a look at this video on how I use WebSockets for browser/server real-time communication. ua-cam.com/video/wpzQa2J0YM8/v-deo.html
Either way you can really just follow along and code the client application which is used to connect to the server app anyway, and test it then with the client side- app
Zed Zedder this just a demonstration of Java networking. If i were to create a create a new multi user chat today, I will use WebSockets as a replacement for using TCP/IP direct. WebSockets will be the subject of my next course.
@@JimOnDemand Thanks for answering. I am learning Java, so this seems to be a good project to experiment on the server side. I discovered things that I already "know" but they just fell in place whatching these videos, so now I understand them as well. Thank you for your efforts, it is really helpful. I subscribed.
Артём Чернов as developers we should value our skills and time more. Don’t underestimate the amount of time and love that goes into making these videos.
You're explanation is far better than that of my lecturers!
I don't think I'd be able to actually build my required multi user chatboard without this tutorial. thanks alot
This man is awesome he explains everything very good and is patient
YOUR EXPLANATION IS REALLY AWESOME!!!
I'm working on this group chat application and being a student I've so many doubts... Your video is the only one that I find is very easy to understand....
Thank you for the detailed and straightforward explanation of how this works, Jim.
Best video about Multi-User Chat. Thank You!
Jim, I have to say that your way of explaining things in this video is awesome - step by step, clearly described! Gread job!
...and that is really NOT a common thing in the world of IT : a lot of people who study or work in IT can do a lot of "wonderful" things but the 90% of them are totally UNABLE to explain what they're doing and how they're doing it CLEARLY. I think that's a great limit.
i used to think coding was so hard until i watched this tutorial i love how you explained everything and how easy it was to understand you
Thank you so much for this. I'm starting out my first project for my systems programming class and I had no clue where to start. This helped a lot!
Hello dear Jim, I´m learning java and English ( at my own ), but i found this video very interesting and complete, thanks for your effort to do that, it was a really simply but excellent explanation of this topic.
Now i'm able to modify my own code to make a server Apk-
I'll let you a big like to all your vids.
Nice English, man! 💪
All JoD Ep1-5 are so helpful - superb!
What an excellent video! Many thanks!
for those who use windows: end your string with "
", not only "
". But the best way is to use System.lineSeparator(); instead of hard-coding.
I recommend you to read about CRLF and how line separation works on Windows and Unix systems.
I was just looking at the comments about to ask why he needed the
. This is my first look at creating a server. What is the reasoning for needing it there? Also for the .getBytes()??
Subscribed after watching this, fantastic explanation.
amazing tutorial
This was amazing thank u so much
Thank you for all of it !!
I loved this. Great explanation :)
very well explained!
Thank you so much sir ... you explained it very well ...
Thank you so much, you are my hero
Excellent video
you are amazing!!!
sir project file is not showing in website...
saying " igfm.co’s server IP address could not be found. "
Hello sir and everybody...my question is...
Can you please tell me, is this possible that we send msg from one machine to another machine on different location...?
Because with me ,it is only working on the localhost, not on the other computer's ip address on different location...
Please reply...🙏
The only way that would work is if the two machines are connected to the same local network.
@@SL3APYH3AD11 and what about on different network, because on same network of mobile hotspot, two pc were able to communicate with each other... but
How can i connect with public ip address of a device...?
I may be a little late but when you say working do you mean it also works for a server lets say in California and a client in Georgia can connect?
Yes, the server can be anywhere as long as it is reachable by the client. This means that server will need a public internet facing IP address (instead of an internet network address such as 192.168.*.* or 10.*.*.*). Also make sure to configure the firewall to open access to the server port.
Great Video!
As you mentioned this can only work for limited number of client. The work around is multitasking io. Could you make a video about that? Thank you
I will make a video about it soon.
noice
Everything is functioning, however I get the error "Connection refused" on my macbook upon entering "telnet localhost 8818". Is this a common problem? How could I potentially fix it?
what do you press to do all the cool shortcuts like adding exception automatically..? Is it IntelliJ shortcut or JAVA short cut?
Java does NOT have any shotcuts whatshoever. if you want shortcuts you are gonna need an editor of code (IDE for short).
I raccomend taking a looking at:
www.eclipse.org/
www.jetbrains.com/idea/
They are 2 very good editors
Hi thaks for you video.
Hi. I have a question about reader.readLine() method, because something doesn't feel right for me. Is this method readLine() works similarly to socket.accept() method in the sense of waiting for input? Because I don't understand how this while loop seems to wait until you write something into the console and after you write your line and line is outputed the line String doesn't become null and while loop doesn't end. Normally it should end before you even start writing because this function is executed after you connect to the server. So something is clearly waiting for input is it readLine()? Or maybe I'm missing something?
reader.readLine() method will block and won't return until either a newline character '
' or the underlying input stream is closed. readLine() will return either the whole string line or NULL if the underlying stream is closed.
@@JimOnDemand Thanks for clarification. Great video.
Hello Jim, just wanted to say very great series! and well explained! I tried going to the link in the description to get hold of the source code, so i can have a play around with it, but the site doesnt load correctly. Is there another link for this please?
After Refactoring the code , there is an error for Socket Closed in the function. How do i tackle that
Hey Jim! Your tutorial helped me a lot! I was wondering can l make a GUI desktop app and connect me and my friend with this tutorial?
Yes! You can create a GUI that runs on multiple desktop machines as long as those machines can connect to the same chat server.
Hello Jim, first of all thank you for a great video. My question is what can you reccomend to start using today for a simple network testing. In this video you used telnet. Is there any available equivalent or telnet is fine for such thing?
I normally use telnet to test if I can connect to a specific port and send data to it. Telnet is good when for text based protocols like regular lines of text, json and xml. Binary data would require something else. There are specific program for testing such as using cURL for HTTP requests.
Thanks for the reply
subcribed!!! thank you so much
I keep getting "You must supply at least agent names to the text-based client."
(Eclipse IDE)
Hi!! I can't solve your expression in Eclipse Thread.sleep( millis:1000) throw Exceptions or other things It does not solve.
Should be just: Thread.sleep(1000);
IntellJ adds the "millis:" to the IDE display.
Thanks!!! I like your channe because of presenting information and quality!!! I'm a beginner that is why your lessons are a important for practicing
Thank you for your kind words.
sir its very useful for me.. i'm writing the same code.. bt i use ObjectOuputStream & ObjectInputStream bt it shows some error.. when i send msg its not working.. i trying to findout the bug i failed..
Are we following any design pattern?
wow
How do I do this on the eclipse IDE
Can anyone tell me what is terminal in windows
how multiple clients can simultaneously connect to same port 80.
A server socket can accept multiple client connection on the same port.
Your work is awesome and appreciative thank you for that...
I am working on same project(personal) i wanna make client to able to send message to multiple servers
HOw do i do that??
some hints will work fine!
Can we use react js front end to connect to server socket?
When using web development frameworks such as React JS, you will want to use WebSockets to create a bi-directional client/server connection. Take a look at this video on how I use WebSockets for browser/server real-time communication. ua-cam.com/video/wpzQa2J0YM8/v-deo.html
@@JimOnDemand thank you so much you're great
Hey jim , How can i open the terminal
Where are other videos Sir? Why are they turned private?
You can find all of them here: fullstackmastery.com/courses/MUC
In youtube some word i don't know i can read subtitle but
Hello, do you still have the files?
TCP or UDP? thank you
TCP
SALAM! sir
which software i can use for it???it is very helpful for me please reply me soon
In the video, I am using IntelliJ IDE. You can download the FREE community edition here www.jetbrains.com/idea/download
thank u so much sir i am very glad of uuuu
sir!how you open the terminal??i can not open it in me laptop please guide me
Is windows or MAC ?
Either way you can really just follow along and code the client application which is used to connect to the server app anyway, and test it then with the client side- app
where is part 2?
Does this use SQL ??
No, this project does not use SQL. This could be something that you can add yourself.
Thanks for the demonstration. Is this still valid, at the end of 2019? Anybody?!?
Zed Zedder this just a demonstration of Java networking. If i were to create a create a new multi user chat today, I will use WebSockets as a replacement for using TCP/IP direct. WebSockets will be the subject of my next course.
@@JimOnDemand Thanks for answering. I am learning Java, so this seems to be a good project to experiment on the server side. I discovered things that I already "know" but they just fell in place whatching these videos, so now I understand them as well. Thank you for your efforts, it is really helpful. I subscribed.
Zed Zedder thank you for subscribing. Mastery follows practice.
What is a module
A module is similar to a subproject.
Thanks and excellent video! I wonder how many Socket connections can weigh on 1 particular port before lag is experienced or something
DU EHRENMANN
10 dollars for almost 3 year old videos. Sounds fair
Артём Чернов as developers we should value our skills and time more. Don’t underestimate the amount of time and love that goes into making these videos.
how to run the downloaded project ?
You need to open the project in IntelliJ IDE www.jetbrains.com/idea/download
JimOnDemand will it run on Android studio ?
I believe Android Studio is only for Android app development. You can download the free version of IntelliJ IDE to run it.
Full course playlist: ua-cam.com/video/NShl9OzlBOg/v-deo.html
Fantastic.