Internet Address :
Devices connected to the internet are called nodes. Nodes that are computers are called hosts. Each node or hosts is identified by at least one unique 32 bit numbers called Internet address.
Internet address is written as four unsigned bytes, each ranging from 0 to 255. Bytes are separated by periods.
DNS :
DNS stands for Domain Name system which associates host names that human can remember easily.
Example :
152.2.21.1 is associated with domain name such as oit unc.edu.
Inet Address Class:
Inet Address class is an encapsulation of IP address. It can be used by other classes like socket, server socket, URL, Datagram Socket, Datagram Packet and more.
Function:
Inet Address can be specified as two fields
Host name – String _ contains names of the host.
Address- integer- contains 32 bit IP address.
The method of this class can’t be called directly

COMMENTS
No Comments