I am developing a galaxy tool which would need the ip address of the running Galaxy as its parameter. Is that anyway I can get the ip address and feed that to my tool?
I tried to do that in the command section, but protocol is not exist and ip address is 127.0.1.1. My Galaxy is running on http://192.168.56.11:8080/
#import socket
#set hostname = socket.gethostname()
#set ip = socket.gethostbyname(hostname)
#set protocol = socket.getprotobyname(hostname)
#set $host = str(protocol) + str(ip)
Thank you in advance!
Best, Yating