It is more of a tutorial for newbies in Java and trying to learn network programming in JAVA. This contains all the programs that are required for a newbie in network programming using JAVA. This could be useful to all undergrad students who are willing to learn network programming in JAVA.
- Socket Communication.
- Client Server Echo TCP and UDP.
- Client Server chat TCP and UDP.
- Remote Method Invocation (RMI) .
- HTTP Connection.
End point of a two-way connection (Terminal) which is given a port number. A network is combination of an ip address and a port number.
Port is an apartment number and a socket is an apartment.
```java Socket socket = new Socket( String host, int port ) ; //Client side Socket socket = new Socket ( int port ) ; //Server side ``` ```java DatagramSocket socket = new DatagramSocket( int port ) ; //Both client and server side. ```