Open v-ruizh opened 5 months ago
The mismatching IP address is a known issue that we don't have control over. The message genuinely describes what's going on. Some Local Area Network Gateway has multiple outgoing IP addresses. The IP discovery service we use echoes the IP address used for the request for IP discovery, which may not match the request that goes to Azure to connect to the database. In this case, the user will need to contact the network admin to have a fixed IP addresses be assigned or maybe use a range to make sure all traffic initiated from his Local Area Network can pass the firewall.
Verified on the 0.22.0 build, this issue doesn't reproduce on the PostgreSQL Flexible server, but reproduces on the PostgreSQL Single server.
Verified the latest build v0.22.1-alpha
on Windows OS, this issue also reproduces for the PostgreSQL Single/Flexible server now.
OS: Mac (M1 Pro) Build Version: 20240312.1
Repro Steps:
Expect: Succeed to connect to the PostgreSQL Flexible server.
Actual: Fail to connect to the PostgreSQL Flexible server with a warning.![image](https://github.com/microsoft/vscode-cosmosdb/assets/45614674/b72aae15-db27-44d9-9686-1c87461d7cd4)
More Info: This issue does not reproduce on Windows 10 and Ubuntu 22.04.