Returns the localhost IP address, which is 127.0.0.1 for IPv4 and ::1 for IPv6 addresses.
getLocalhostIP() → returns string
getLocalhostIP()
→ returns string
Here we've example to get localhost ip address using getLocalhostIP()
writeOutput(getLocalhostIP()) ;