Ask coding questions

← Back to all posts
wsgi
MagnusFrid (2)

what is pip install waitress and production wsgi. When i run my code repl advise me to use a production wsgi instead. I don't know what that is.
Can someone please explain it to me?

Commentshotnewtop
AbhishekJ (0)

if you do app.run(debug=True, host="0.0.0.0") it will show you a window which has the preview of your (Whatever you are hosting) and you can click on open a new tab which will take you to a tab with that page open, you can use that url anywhere to access that page. I have not used WSGI, I only used repl to host an API for my friends for a few hours but I think it should work with WSGI as well.

SixBeeps (3221)

WSGI, or Web Server Gateway Interface, is a way for servers to interact with clients. Are you making a server?

MagnusFrid (2)

trying yo make a simple homepage. but can not find the my repl page through the ip address. do you know what i can [email protected]

MagnusFrid (2)

was able to make a proxyserver though with [email protected]

SixBeeps (3221)

@MagnusFrid Hold on what are you using currently?

MagnusFrid (2)

@MagnusFrid/hemsida is the code and Running on http://127.0.0.1:5000/. but it doesn't work the [email protected]

SixBeeps (3221)

@MagnusFrid Are you trying to connect from another device? That address is entirely local so you can't connect to it externally without port forwarding.

MagnusFrid (2)

was trying to access from another tab. how can I use port [email protected]

SixBeeps (3221)

@MagnusFrid Oh wait, you're hosting it on Repl.it.
I haven't done a whole lot with web servers, but I think you're gonna have to host the server on your own device. Then, you can forward your device's IP on your router by following this guide