ios-app icon indicating copy to clipboard operation
ios-app copied to clipboard

Select specific server

Open jurajhilje opened this issue 2 years ago • 8 comments

Implement the option to select a specific server to obtain the same IP address on every connection.

jurajhilje avatar Jun 21 '22 06:06 jurajhilje

@gorkapernas Available in the 2.6.4 (10) build.

jurajhilje avatar Jul 11 '22 08:07 jurajhilje

@jurajhilje there is one issue so far, when selecting a specific host for a given location (e.g. Amsterdam nl8), if you try to connect to another location through the map (e.g. Paris), the app will connect to the same host selected previously (Amsterdam nl8), although the app shows Paris (nl8) in the UI (also wrong since nl8 belongs to Amsterdam). There is probably a conflict between the host selected previously and the new location selected on the map, since this last one does only have one single host.

Screenshot: iOS_specific host_issue

Steps (any protocol):

  1. Select e.g. Amsterdam nl8.gw.ivpn.net.
  2. Connect.
  3. In the map, select another server e.g. Paris.
  4. Connect through the "connect to" popup.
  5. Open the connection info, observe the issue.

Expected result: The app should connect to the location selected in the map, regardless of the host selected previously in the list of servers.

gorkapernas avatar Jul 14 '22 13:07 gorkapernas

@gorkapernas Got it, It will be fixed in the next build.

jurajhilje avatar Jul 14 '22 13:07 jurajhilje

@gorkapernas Fixed build 2.6.4 (11) is available.

jurajhilje avatar Jul 19 '22 08:07 jurajhilje

Verified on 2.6.4 (11) production and 2.6.4 (13) staging, the issue reported previously has been fixed, the app connects successfully to the location selected in the map, regardless of the host selected before.

@jurajhilje unfortunately there seems to be another issue, when connecting to a specific host either with OpenVPN or WireGuard, and after if you change the protocol to one of these (OpenVPN or WireGuard) and connect to the same host, the VPN times out (OpenVPN) or keeps trying to connect in a loop (WireGuard). I was able to reproduce this on staging and production with builds 2.6.4 (11) and 2.6.4 (13).

Steps:

  1. Install e.g. 2.6.4 (11)
  2. Login.
  3. Select any location + host e.g. Amsterdam (nl8) with WireGuard.
  4. Connect / Disconnect.
  5. Select OpenVPN.
  6. Attempt to connect to the same location/host.
  7. Observe the VPN times out.
  8. Repeat steps 3-7 connecting with OpenVPN and then changing to WireGuard.

The issue does not happen when only the location is selected.

gorkapernas avatar Jul 22 '22 10:07 gorkapernas

@gorkapernas The new build 2.6.4 (14) (production API) is available. Now switching protocols "resets" specific host selection just to location/gateway selection. The same behaviour is implemented in our Desktop app as well.

jurajhilje avatar Jul 26 '22 10:07 jurajhilje

@gorkapernas New build 2.6.4 (15) (production API) is ready. As we discussed, when switching protocols the selected host will persist if equivalent exist for both protocols. E.g. de1.wg.ivpn.net will be de1.gw.ivpn.net when switching from WireGuard to OpenVPN.

jurajhilje avatar Jul 28 '22 07:07 jurajhilje

Verified on v2.6.4 (15)(16), iPhone XR 16 Beta 4, iPad 6 iOS 15.6, the app behaves as expected, when switching protocols, the host is remembered as we discussed, unless the selected host doesn't exit on the new protocol, in such cases, the app will show only the location (and will connect to the location) after switching the protocol. Tested all protocols, SingleHop and MultiHop... everything looks good.

gorkapernas avatar Jul 29 '22 13:07 gorkapernas