I have a web server with multiple IP addresses that needs to connect to a database server. The DB server is behind a firewall that’s controlled by an IP address whitelist. (If it matters, it’s an Oracle server.) Is there a way to specify the IP address used by the web server in the OracleConnection, so that only one IP needs to be added to the whitelist?
I see there are a few similar questions about specifying outgoing IP addresses (such as this one and a couple linked from there), but none that specifically mention database connections.
Generally speaking for a web server, you have one or more externally addressable IPs, but only one internal one.
The internal address is what is connected to your internal network for communicating with things like database servers. The external ones are used when outside clients connect or for outbound communications..