Expand HOST_IP in galaxy_infrastructure_url using socket library.
Seems to allow dynamically setting correct IP for Galaxy instances inside of Bjoern's docker-in-docker setup (enabling IPython in the stable Galaxy instances).