# How to make Plotly chart web address NOT to change?

**URL:** <https://community.plotly.com/t/how-to-make-plotly-chart-web-address-not-to-change/59909>\
**Category:** 📊 Plotly Python\
**Created:** [January 8, 2022, 5:00am UTC](https://community.plotly.com/t/how-to-make-plotly-chart-web-address-not-to-change/59909 "2022-01-08T05:00:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![trader007](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/trader007/32/15543_2.png) [@trader007](https://community.plotly.com/u/trader007)\
**Post date:** [January 8, 2022, 5:00am UTC](https://community.plotly.com/t/how-to-make-plotly-chart-web-address-not-to-change/59909/1 "2022-01-08T05:00:43Z")

</div>

When I run a Python Plotly app which ends with fig.show() it creates a web page with a random address, like 127.0.0.1:53677. So if I put this Python Plotly app within a loop it will create (every time) a new browser window, with a different address, meaning endless number of windows.  
My goal is to set this address to be the same, like 127.0.0.1:8050 with Dash, so the app will create the graph always within the same window, like real-time graph. How do I do that?  
I use PyCharm, if that is important.

---

<div class="post-metadata">

**Author:** ![jlfsjunior](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jlfsjunior/32/16061_2.png) [@jlfsjunior](https://community.plotly.com/u/jlfsjunior)\
**Post date:** [January 8, 2022, 9:30am UTC](https://community.plotly.com/t/how-to-make-plotly-chart-web-address-not-to-change/59909/2 "2022-01-08T09:30:36Z")

</div>

Hi,

I had a similar question a long time ago and I ended up convincing myself (perhaps wrongly) that there are no way to control the port from the API. What I did instead was to use `plotly.io.to_html` to convert the figure object to string and then used `webbrowser`to send it to the browser. This is basically what [plotly does](https://github.com/plotly/plotly.py/blob/master/packages/python/plotly/plotly/io/_base_renderers.py#L747), but you have extra control.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![trader007](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/trader007/32/15543_2.png) [@trader007](https://community.plotly.com/u/trader007)\
**Post date:** [January 8, 2022, 12:36pm UTC](https://community.plotly.com/t/how-to-make-plotly-chart-web-address-not-to-change/59909/3 "2022-01-08T12:36:56Z")

</div>

Thanks, I had a look but I am sure there must be a simple solution, like in Dash. Let’s see if others have anything to say.

---

<div class="post-metadata">

**Author:** ![Bakira](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/bakira/32/30887_2.png) [@Bakira](https://community.plotly.com/u/Bakira)\
**Post date:** [February 27, 2025, 4:30pm UTC](https://community.plotly.com/t/how-to-make-plotly-chart-web-address-not-to-change/59909/4 "2025-02-27T16:30:50Z")

</div>

Hi all,

have you find a way of keeping the .show() address static?
