Is there an environment variable for IP address of instance?
Hi,
I am trying to write a Stackscript to deploy Jupyter Lab. At the end, I need to start service by providing an IP address, but I can't find any env variable that stores IP address for that certain instance
os.system('jupyter lab --ip 0.0.0.0 --port 8888 --no-browser')
That 0.0.0.0
should be automated such as LINODE_IP
. But I can't find anything related to that in guides. Thanks.
1 Reply
There isn't… This guide gives several ways to query it from your script:
https://phoenixnap.com/kb/how-to-find-ip-address-linux
-- sw