Internet and WWW have emerged as global ubiquitous media for communication and changed the way the users learn, live, enjoy, communicate, interact, engage, etc. This paper describes about network programming and socket elements in java. Network programming is similar to socket programming. It introduces the concepts involved in creating network applications using socket. Where socket programming is important to understand how to inter-process communication work. In this, the authors describe TCP/IP socket programming. There are many research papers available on the socket programming, but in this paper, they have discussed a socket program interface which will be useful in understanding the socket.