Program to get Host Name and IP address in Java

Output is –

My IP address is : INL-5P5N6C2/10.154.45.64
My hostname is : INL-5P5N6C2

Top