Showing posts with label Networking. Show all posts
Showing posts with label Networking. Show all posts

Friday, 7 August 2020

Fix "java.net.BindException: Address already in use" | bind exception in Java Socket Programming

                    In this post, we will see Fix "java.net.BindException: Address already in use" | bind exception in Java Socket Programming | Fix bind exception address already in use |  java.net.BindException | Java Socket Programming | bind exception address already in use,java.net.bindexception address already in use bind,the exception was java.net.bindexception address already in use bind,Exception in thread "main" java.net.BindException: Address already in use (Bind failed)

When we rerun the socket program, we get following error:
Exception in thread "main" java.net.BindException: Address already in use (Bind failed)

Find solution for this exception (error) in this video:




Watch on YouTube: https://www.youtube.com/watch?v=DMoz4VwwJgg

Sunday, 5 July 2020

Socket Programming in Java | Socket Programming in Java Tutorial for Beginners | TCP Socket Example

                  In this post, we will see Socket Programming in Java | Socket Programming in Java Tutorial for Beginners | TCP Socket Example | tcp socket programming in java,tcp socket programming,tcp socket connection,tcp socket programming in java,tcp socket connection explained,tcp socket in java,tcp socket server,socket programming in java,socket programming,socket programming in computer networks

TCP Client Server Program in Java (Socket Programming)
https://www.comrevo.com/2019/07/tcp-client-server-program-in-java-socket-programming.html

Watch this video to understand Socket Programming in Java:




Watch on YouTube: https://www.youtube.com/watch?v=Qzk5v3Lftlw

TCP vs UDP Protocol | TCP vs UDP Difference | TCP vs UDP in Computer Networks

                 In this post, we will see TCP vs UDP Protocol | TCP vs UDP Difference | TCP vs UDP in Computer Networks | tcp vs udp,tcp vs udp in computer networks,tcp vs udp difference,tcp vs udp protocol,tcp vs udp socket,transmission control protocol,user datagram protocol,transmission control protocol vs user datagram protocol,transport layer protocol,transport layer protocols in computer networks

Watch this video to know differences between TCP and UDP protocols:




Watch on YouTube: https://www.youtube.com/watch?v=lZVJGVz5KS0

Socket Programming Basics | What is Socket in Computer Network | Types of Sockets in Networking

                  In this post, we will see Socket Programming Basics | What is Socket in Computer Network | Types of Sockets in Networking | what is socket in computer network,what is socket in networking,types of sockets in networking,types of socket in network programming,socket programming basics

Watch this video to know basics of Socket Programming:




Watch on YouTube: https://www.youtube.com/watch?v=mkcgoJunBWE

Monday, 29 July 2019

Difference between TCP and UDP

                   In this post, we will see difference between TCP and UDP.
                  Go through the following.

Monday, 22 July 2019

Client Server chat program (application) in Java using Socket Programming


                      In this post, we will see Client Server chat program (application) in Java using Socket Programming.
                     
                      Go through the following programs.

UDP Client Server Program in Java (Socket Programming)


                      In this post, we will see UDP Client Server Program in Java (Socket Programming).
                      UDP is connection less protocol. Here, no connection is established between Client and Server. Client and Server have to create Datagram Packet and also have to mention IP address and Port number.
                      Go through the following programs.

TCP Client Server Program in Java (Socket Programming)


                      In this post, we will see TCP Client Server Program in Java (Socket Programming).
                      TCP is connection oriented protocol. Here, first we have to establish connection between Client and Server and then we can send/receive messages. 

Watch following video to get explanation of this program:


                      Go through the following programs.

Thursday, 1 September 2016

Networking

                   Go through the following posts:

1.  Difference between TCP and UDP

2. TCP Client Server Program in Java (Socket Programming)  

3. UDP Client Server Program in Java (Socket Programming)  

4. Client Server chat program (application) in Java using Socket Programming

5. Client Server program in Java using Socket (One Server and Multiple Clients)





                     Ask your Question related to Networking as a Comment in following Textbox.

                    You can Answer the already asked Question as reply to the Question. 

(Note: Your Question/Answer will be added after validation)


Sunday, 23 August 2015

Client Server program in Java using Socket (One Server and Multiple Clients)

                 In this post, we will see how to write a sample client-server program in Java using Socket programming (One Server and one/more Clients). 
                 Go through the following programs (Server.java and Client.java). Run Server.java on a machine which you want to make server and run Client.java on any number of machines which you want to make clients. In Server.java, I have used multi-threading to handle requests from multiple clients.
                 I have run following programs on same machine. That's why I have used IP address 127.0.0.1. If you want to run on different machines, then instead of 127.0.0.1, use IP address of server machine.