Forum Archive

Bottle Question

vpn

Hello, I have a question about bottle. I have tried looking it up on YouTube, but now am resorting to this forum. I was wondering if I could host this not just on my localhost but on my actually IP itself. Is this possible? BTW, I'm on python 2.

bennr01

@vpn use bottle.run(host="0.0.0.0") to listen on all interfaces. If you have your own bottle instance, use the run() method of the instance.

vpn

@bennr01 thank you, just what I needed! I will try it out now.