In this post , We will learn to get the IP address of our Linux /Windows machine using command prompt .
Linux

Linux command
hostname -i
Output
Windows

Windows command
ipconfig
Output
IPv4 Address. . . . . . . . . . . : 192.168.43.47
Related Articles
Run shell script from java with Example