There are a couple of ways of doing it inon both windowsWindows and linux e.gLinux. For example,
- nslookup : the classic way to find ip formthe IP address from a hostname or vice-versa.
- ipconfig or ifconfig based on whether you are running on windowsWindows or unixUnix
- hostname -i in linuxon Linux
Ref: Multiple ways to get IP address from hostname in linuxLinux and windowsWindows