I need to whitelist my backend server IP Address
appuhamy
HOBBYOP

2 months ago

I have a MongoDB instance on Railway (Basic Plan) and my backend server is deployed on a Google Cloud Server. I want to restrict database access so that only my backend server’s IP address can connect. How can I configure Railway to allow access for specific IP addresses only?

$10 Bounty

2 Replies

I don't think you can allow access to specific IP addresses only.

My recommendation is to host your backend on Railway so you're able to use the internal network.


jorgeferrarice
PRO

2 months ago

You can probably use Tailscale to create a VPN, this will make the access 'internal only'.

I use the Tailscale Forwarder template in Railway, which is very simple to setup.

Also, Tailscale up to 3 users, free, so you'll have no cost.

Hope I've helped.


Loading...