How to designate my server url?

I want to Designate my olotly dash web server url
Now http://127.0.0.1:8050/
But want to desginate http://127.0.0.1:8050/ project_key
project_key is always change
I think app.runserver(debug=True, port=, host)
This runserver Function make change my url
But i dont know how to do

HI @limaa welcome to the forums.

If this is sufficient for your needs, by using the port argument you can change the port.

For example:

run.app(port=1234) http://127.0.0.1:1234

port must be in the range of 1 to 65535

2 Likes

Hello @limaa,

I’ll also add to @AIMPED ‘s answer, to make your app visible to the outside, you’ll also need to pass an ip.

app.run(host=‘0.0.0.0’, port=12345)

This will run the app and respond to requests directed to your computers network ip at port 12345.

2 Likes