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

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct