Networking

Server to Client using UDP Example Java

Before going into the details of this program "Server to Client UDP Java", it is advised to go through the network basics, sockets and binding and UDP basics. The functionality in this application of "Server to Client UDP Java Example" is server sends system time to the client for each…

Echo Server UDP Example Java

Before going into the details of this application "Echo Server UDP Example Java" it is advised to go through the network basics, sockets and binding and UDP basics. After studying the first application on UDP protocol, let us go to the second application Echo Server. The Echo server sends back…

Java Networking in a Nutshell

A. Networking terms and basics 1. Networking – Introduction 2. Communication with TCP/IP Protocol B. Using TCP/IP Protocol 1. Client to server (one way) 2. Server to client (one way) 3. Server sending file contents (two way non-continuous) 4. Chat Program (two way continuous) C. Using UDP Protocol 1. Server…

Send File Contents two way communication Java

Before going into the details of this server-to-client communication, it is advised to go through Networking – Introduction and Communication with TCP/IP Protocol to know the terms and basics of networking and the way Java supports. This is the first application (second one being chat application) in two-way communication. In…

Chat Program two way communication Java

Chat Program Java is a continuous communication between two systems. Networking chapter also (apart threads, DS etc.) proves that Java language is simple to develop applications that are difficult (requires extra practice and experience) in other languages. Before going into the details of client-server communication, it is advised to go…

Server to client Example Java

Before going into the details of this server-to-client communication, it is advised to go through Networking – Introduction and Communication with TCP/IP Protocol to know the terms and basics of networking and the way Java supports. Total 4 applications are available on TCP/IP sockets. Application Number Functionality 1st application Client…

Client to Server Example Java

Before going into the details of client-to-server communication, it is advised to go through Networking – Introduction and Communication with TCP/IP Protocol to know the terms and basics of networking and the way Java supports. This is the first application in one-way communication. In one-way communication, here, client sends to…

UDP Protocol Example

UDP Protocol Example Summary: All the earlier programs are based on TCP/IP protocol. Here "UDP Protocol Example" discusses the basics of UDP protocol. Later postings gets you the programs. User Datagram Protocol (UDP) It is advised to go through the network and socket basics before proceeding to the UDP protocol.…

Communication with TCP/IP Protocol Java

Java is very strong in communication world. To support, LAN programming, the java.net package comes with two classes Socket and ServerSocket. The meaning and purpose these classes and network related basics, you have studied in Networking – Introduction. Socket and ServerSocket are extensively I/O streams for data traversal and for…

URLConnection URL

URLConnection URL Summary: In this "URLConnection URL", you will know how to read a file with URLConnection class. Methods of classes URLConnection and URL are explained with example code, explanation and screenshots. Are You Busy – A program on ServerSocket The developer can easily know which port number on the…

InetAddress Example Java

Getting URL from URN As the name indicates, the InetAddress of java.net package refers a Web server address in Internet. We know earlier, URN (Universal Resource Name) is easier to remember than URL (Universal Resource Locator). With InetAddress, we can get a lot of information of a Web server. In…

Networking Tutorial Port Protocol

Networking Tutorial Port Protocol Summary: Networking is a big subject with confusing general concepts like port number and protocol etc. for a beginner. These concepts are explained in simple terms in this "Networking Tutorial Port Protocol". Networking is the process of connecting different computer devices like printers and systems to…