This research study discusses the detail overview in developing a client server based application using socket programming in a distributed computing environment. The researchers developed a client-server based application called OpTel Billing System (OBS) using Java NetBeans and TCP datagram to demonstrate the concepts of socket programming and its communication in a distributed computing. Interface design, socket programming style, java classes, and exceptions are also considered in the development stage. The communications between client server application processes using socket mechanism were mainly analyzed. The main objective of this research study is to demonstrate the principles and concepts behind socket programming as well as the libraries available in Java. In conclusion, socket programming is one of the best method in distributed computing that can improve system's performance.