i've been really sad last few days because my teacher expects so much from us, and he doesnt even try to explain and makes me want to quit programming so bad...he just doesnt care...this video helps a bit! greetings from croatia!
This video is a great help, thanks a lot. I appreciate how you put work on this video, you gave lots of information, put extra info at the bottom, and gave a quick tour of what's happening at backstage of the program. Thanks a lot man.
Amazing video the little captions helped a lot and actually explaining each command line by line is so helpful or the fact that a byte has stream while others have reader. So much better than my prof and im paying 20k in tuition
learned alot from the video! but can i make a suggestion to zoom in a little when you are typing in the code to make viewing a little easier on the eye. As someone who was trying to follow along with my own IDE, it was hard to have both screens at the same time. thanks again! :)
Thanks for the help.I was doing the same practice but had no idea what host ip address to put in.Here I see you just put localhost as the target host.Thanks
I had issue with the server. Every time I typed "bye" it closed the program but kept the server on. The way to fix it was by deleting the second loop in the server's code. Now the only problem is: There are still "broken" ports that I can't use anymore, they throw the error: "Exception in thread "main" java.net.BindException: Address already in use: bind ...." I'm trying to find out how to fix that and I will update if I find an answer!
Thank you for this, I've successfully configured this but let's say I have multiple clients sending to the server. How would I keep the client data & send it to all clients on that server?
When I send the Message "BYE" to end the connection the Client works as expected but my Server throws the following Exception: Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.lang.String.equalsIgnoreCase(java.lang.String)" because "msgFromClient" is null at com.view/com.model.Server.main(Server.java:53) Any suggestions what is going wrong? I copied the code 1:1 to be sure it works.. Thanks so far for the video!!
Thanks for video. But please tell if i build friends live location app. By using android studio . Can we send data i app to other throw sockets.... I means i can't use firebase for storing and sending LONGITUDE AND LATITUDE data to server to client app ?
thanks for the tutorial, but I can't send multiple messages to the server at the same time, every time I want that , I must reconnect the client to the server again , I just wrote the same code of the tutorial
i am trying the above code nut for a specific host address and port, iam getting connection refused or connection timeout, can someone tell me what iam doing wrong?
Is your source code available anywhere? I’m certain I’ve copied your tutorial step by step, but unfortunately I’m running into errors. I’m able to send one message from the client just fine. It shows up in the sever terminal perfectly! Whenever I try to send a second message, however, my client terminal says “Sever: null” instead of “Sever: MSG Received” and then any further attempts crashes the program. Edit: Scratch that. For some reason, closing out of my IDE and reopening it cleared that issue. Thanks a ton for the tutorial!
how to send the message in following form → {message, SHA_256_hash_value}. Once the server receives the message it will parse it, calculate the SHA_256 hash value of the message part and compare it with the received hash. If values are matching it will send 'OK' back to Client, else 'Message was compromised'.
Hey there! That sounds to me like you are trying to implement something similar to a json web token. Id look up online about that and some library in java for encrypting and decrypting?
Hey there! If you are wanting to connect to a different computer you have to specify the IP address in the socket constructor. So instead of new Socket("localhost", 1234) you will need the connection information of your server. This can get a little messy due to network address translation (going from a public to private network essentially). I am hoping to make a video on this soon when I get a second computer haha
@@montescottbarber9813 Great question! The socket constructor can accept either so it just depends on if the server you are connecting to is using ipv6 or ipv4. For example, localhost on ipv6 would be the following: Socket socket = new Socket("::1", 5000);
Hey Kalana! The code would basically be the same but have it so the client is waiting for messages as opposed to the server! I'll probably make a video on this at some point 🤠
This video is so awesome.Thank you for sharing.I am cant seem to enter more than one input from the clients side.After saying hi,the server replies message received.Then I cannot enter any other entries from the client.Is any one else having this issue?
Hey there! Thanks so much for watching! To me it sounds like your client is waiting for more data from the server! Did you forget to flush the buffer from the server along with a new line?
@@WittCode Thank you for the feedback,Yes I did flush the buffer from the server along with the new line. github.com/Hloni-Malebana/Client-Server-Algorithm.git
i just get a bunch (18) of these errors!!!!! 'symbol: variable bufferedReader location: class Server Server.java:57: error: cannot find symbol bufferedWriter.close();'
Sir can you make a tutorial on how to make a file uploader button in java eclipse? Btw my system is a lan messenger i just need it for my school project proposal
Hey Ben! That's a good idea for a video so thanks! Do you mean you click a button and it opens the file explorer in windows or whatever OS you are using and you choose the file you want to send to the other user? I would most likely implement this with JavaFX.
i've been really sad last few days because my teacher expects so much from us, and he doesnt even try to explain and makes me want to quit programming so bad...he just doesnt care...this video helps a bit! greetings from croatia!
Hey! It's awful having a teacher that doesn't put in the time to explain things! Hope it gets better and hello from the US 🤠
I learn more from your videos than I ever did in school. I look forward to seeing your tiny head on my screen every day!
Thanks for watching!
This video is a great help, thanks a lot. I appreciate how you put work on this video, you gave lots of information, put extra info at the bottom, and gave a quick tour of what's happening at backstage of the program. Thanks a lot man.
Thanks so much for all the positive feedback! It means more than you know! 😀
Amazing video the little captions helped a lot and actually explaining each command line by line is so helpful or the fact that a byte has stream while others have reader. So much better than my prof and im paying 20k in tuition
I wish I hadn't wasted time on other TH-cam videos, thanks alot... You hv simplified my work and understanding... Great job
Shock to see how few videos he's got given how GOOD he is...
Wow thanks Mark! That really means a lot! 🤠
Great video, especially the way you explain the concepts and give definitions for important terms!
Dude this is absolutely fantastic. You keep going like this and you’ll do amazing. Thank you
Really great explanation. Those short infos you used are really helpful :)
Thanks Fabio! Glad it was helpful! 😀
learned alot from the video! but can i make a suggestion to zoom in a little when you are typing in the code to make viewing a little easier on the eye. As someone who was trying to follow along with my own IDE, it was hard to have both screens at the same time. thanks again! :)
Very underrated thanks for the good explanation and explaining every part good luck with your channel!
Thanks for explaining how the streams and readers actually work! Great Video!
Thanks for the help.I was doing the same practice but had no idea what host ip address to put in.Here I see you just put localhost as the target host.Thanks
Thank you. This filled in some pretty sketchy holes in my knowledge before a term assignment.
Thank for for the tutorial. You put so much effort into the vid to make it understandable thank you!
Great tutorial, thank you for your time and effort. The short definitions/explanations helped tremendously. 🙏
Bombastic explanation!
💣
This has been a great help to me I will definitely recommend you to my friends because they need help on this too
Dude thank you so much. This helled me undestand a lot! Instantly subscribed! Keep it up man 👍👌
The source code is not in the website
I haven't seen this video yet! But awesome! I needed this for class 😬😬
Always great to hear! Thanks! 😎
Hello, can I put the server and client in different devices would they work then??
I had issue with the server.
Every time I typed "bye" it closed the program but kept the server on.
The way to fix it was by deleting the second loop in the server's code.
Now the only problem is:
There are still "broken" ports that I can't use anymore, they throw the error: "Exception in thread "main" java.net.BindException: Address already in use: bind ...."
I'm trying to find out how to fix that and I will update if I find an answer!
Fantastic video just a little suggestion try to zoom in a bit
Amazing! I am a programming beginner and could follow you very well, I will check out your other videos as well :) Good Job, thank you a lot!
this video is really help me to understand
You're a great teacher!
For the server, it gives me trouble for the while loop. and when I run either one of them it says connection refused.
Thank you for this, I've successfully configured this but let's say I have multiple clients sending to the server. How would I keep the client data & send it to all clients on that server?
dude, this helped me solve my homework AND it deepened my understanding, thank u so much
Thank you soo much it helped a lot looking forward to learn from you
When I send the Message "BYE" to end the connection the Client works as expected but my Server throws the following Exception:
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.lang.String.equalsIgnoreCase(java.lang.String)" because "msgFromClient" is null
at com.view/com.model.Server.main(Server.java:53)
Any suggestions what is going wrong? I copied the code 1:1 to be sure it works..
Thanks so far for the video!!
Thanks for video. But please tell if i build friends live location app. By using android studio . Can we send data i app to other throw sockets.... I means i can't use firebase for storing and sending LONGITUDE AND LATITUDE data to server to client app ?
Very good keep going 👍💙
Thank you so much for this tutorial!
Thank you for watching! 😁
thanks for the tutorial, but I can't send multiple messages to the server at the same time, every time I want that , I must reconnect the client to the server again , I just wrote the same code of the tutorial
thanks for the tutorial, what about different device connecting to the same network?
how to make other computer join the conversation or how to other computer connect to your pc which run java server code
Really helpful sir! Appreciate it a lot
i am trying the above code nut for a specific host address and port, iam getting connection refused or connection timeout, can someone tell me what iam doing wrong?
Can you please do GUI + DB reads/writes + Socket all in one? Love your work
Is your source code available anywhere?
I’m certain I’ve copied your tutorial step by step, but unfortunately I’m running into errors.
I’m able to send one message from the client just fine. It shows up in the sever terminal perfectly!
Whenever I try to send a second message, however, my client terminal says “Sever: null” instead of “Sever: MSG Received”
and then any further attempts crashes the program.
Edit: Scratch that. For some reason, closing out of my IDE and reopening it cleared that issue. Thanks a ton for the tutorial!
Could u plz share that code with me.plzz🙏🙏
is there anyway to make the server talk back other than message recieved
Excellent tutorial.
Can we do this setup for remote client
For some reason it doesn't work for me and i copied it word for word
And this project doesn't exist at the download link to download it
What code do I use to be able to block a client in my application
Really great video thank you!
@WittCode thanks! Can you make a video like this with multiple clients/threads?
Hey! Thanks for watching! I'm working on that and a couple other videos at the moment!
Thanks for that video !
good video...very informative!
Thanks for watching Michael!
Great video, thanks a lot man!
Very helpful video!
where can i find the code for this it is not on the blog :(((
how can you make the server in a way that you can close and start the connection while running the program? and thank you for this amazing content.
can you help me? I can not find the file to download the code
how to send the message in following
form → {message, SHA_256_hash_value}. Once the server receives the message it will parse it, calculate
the SHA_256 hash value of the message part and compare it with the received hash. If values are
matching it will send 'OK' back to Client, else 'Message was compromised'.
Hey there! That sounds to me like you are trying to implement something similar to a json web token. Id look up online about that and some library in java for encrypting and decrypting?
@@WittCode yes
Great tutorial!
Thanks! Helped me alot :D
Very good, thank you!
dude this is amazing
thank you
Great to hear man! Thanks for the support! 😁
Did I stuff up, because for me the Client and Server must be on the same computer. If this is a general thing, how can I fix this.
Hey there! If you are wanting to connect to a different computer you have to specify the IP address in the socket constructor. So instead of new Socket("localhost", 1234) you will need the connection information of your server. This can get a little messy due to network address translation (going from a public to private network essentially). I am hoping to make a video on this soon when I get a second computer haha
@@WittCode Also what type of IP? e.g. IPv4 IPv6 etc
@@montescottbarber9813 Great question! The socket constructor can accept either so it just depends on if the server you are connecting to is using ipv6 or ipv4. For example, localhost on ipv6 would be the following: Socket socket = new Socket("::1", 5000);
@@WittCode Thanks for responding. Ur the best.👌👍
@@WittCode Hi there, I have the same code as you but i get lots of these errors 'Server.java:56: error: cannot find symbol
bufferedReader.close();'
This is a fantastic video. Intelliji is in light mode tho. And for that reason I'm out.
Thanks so much Bezalel! I have gotten a few comments about the light mode 😂😂
Nice job. Keep it up. Can I know how to send msg sever to client what are the changes should I do for it
Hey Kalana! The code would basically be the same but have it so the client is waiting for messages as opposed to the server! I'll probably make a video on this at some point 🤠
I don't really can see this video, it's too small for me :/
This is TCP or UDP?
This video is so awesome.Thank you for sharing.I am cant seem to enter more than one input from the clients side.After saying hi,the server replies message received.Then I cannot enter any other entries from the client.Is any one else having this issue?
Hey there! Thanks so much for watching! To me it sounds like your client is waiting for more data from the server! Did you forget to flush the buffer from the server along with a new line?
@@WittCode Thank you for the feedback,Yes I did flush the buffer from the server along with the new line.
github.com/Hloni-Malebana/Client-Server-Algorithm.git
I cant find the code for this
Please where can I get the code? Is it for free?
Thank you!
Anytime Christopher thanks for watching!
This saved me 🙏
Not getting code ? Plz put jt
thank you
Awesome...
pls share code also
i just get a bunch (18) of these errors!!!!!
'symbol: variable bufferedReader
location: class Server
Server.java:57: error: cannot find symbol
bufferedWriter.close();'
Sir can you make a tutorial on how to make a file uploader button in java eclipse? Btw my system is a lan messenger i just need it for my school project proposal
Hey Ben! That's a good idea for a video so thanks! Do you mean you click a button and it opens the file explorer in windows or whatever OS you are using and you choose the file you want to send to the other user? I would most likely implement this with JavaFX.
Yes sir!
@@benswollo2050 yeah man I'll definitely make a video on that!
Thank you so much sir
I only use java eclipse cause thats what my teacher told because were beginners
Can i have these codes
Good content
copy kan dulu jagultop
Love you
i love you
Please never post a video with this screen zoom again, it's impossible to watch without hard eyes effort😵💫😵
Hey Eril yeah I zoom in in my later videos lol
@@WittCode Thanks so, your tutorials are amazing... and I like it
hi man i love your content and i need help with java. what's your email, i would probably need help.
Hey there! You can ask me questions here if you want? What are you struggling with?