Moved the echo of the IP address to the end of the script and before the (ugly) infinite loop so it's easily seen when running the container.