Jigsaw-Code / outline-server

Outline Server, developed by Jigsaw. The Outline Server is a proxy server that runs a Shadowsocks instance and provides a REST API for access key management.
https://getoutline.org/
Apache License 2.0
5.84k stars 790 forks source link

Taking longer to connect when outbound and inbound IPs are different (Floating IPs) #1576

Closed khantzawhein closed 2 months ago

khantzawhein commented 3 months ago

It is taking a bit longer to connect when connecting IP (the one added to the Outline Client) & outbound IP of the server are different.

After connected, the connection works normally.

For instance, in DigitalOcean, I used the Floating IP (a.a.a.a) of the VPS, however the traffic still go through the original VPS IP (b.b.b.b) address since I didn't configure the VPS to redirect traffic through the new Floating IP.

When I connect the server through a.a.a.a, by manually replacing IP in the key, the Outline Client significantly taking longer to connect than I directly connect through b.b.b.b.

Reproducible on iOS & Mac, haven't tested and confirmed yet on Android, Windows.

What could be the issue?