Dash in Citrix not able to reach the localhost

When I run this code in the citrix environment, I can not open the http://127.0.0.1:8050/

app.run_server(debug = False)

It is always ’ This site can’t be reached 127.0.0.1 refused to connect.’
When I change it to ‘‘debug = True’’, it shows the following

An exception has occurred, use %tb to see the full traceback.

SystemExit: 1

I have also tried other port but did not work.
Has anybody know how to run the dashboard in Citrix?