I need an ip address of a local host in order to use it in an url string. I want to connect to other computer by using port forwarding. The connecting will be written in a bash script.
So, is there a way to generically parse an ip address of a localhost?