hellosendpie
hellosendpie
Explore posts from servers
RRailway
Created by hellosendpie on 11/10/2023 in #✋|help
How do I access my user's public IP?
I'm using a FastAPI as the backend for our app, and have migrated it from our VPS to Railway a few days ago. I noticed that this line of code, isn't returning the client's Public IP anymore, and is instead returning IPs in the range 192.168.0.X:
# Get client IP
ip = str(request.client.host)
# Get client IP
ip = str(request.client.host)
How do I fix it? Project ID: 9104e677-99c1-48c6-bbe8-41942e8c5fa2
8 replies
RRailway
Created by hellosendpie on 2/6/2023 in #✋|help
Require Context On Timeout.
Hey! We have a server endpoint on python which requires 0.5 seconds to 2 minutes to execute (because we're analysing a file uploaded by the user). I have wanted to know what the max timeout for a request on Railway is? So we can plan to migrate those functions to lambda if we see ourselves hit that limit.
4 replies