Score:0

VPN IKEv2 connection problems on Android, IKE_SA failed

bf flag

I have a big problem with connecting to my VPN server from 50% of Android devices. Cannot resolve it 2 weeks with network and android developers

VPN server based on IKEv2 with Charon and Strongswan libs, and it works stable with iPhone devices But on Android devices it fails with error “IKE_SA failed, peer not responding” after 3 retransmits of sending IKE_SA_INIT requests

I tried to gather information what was tested, and some hypotheses we had:

  1. Android app used to connect is problematic: No, it is most popular Strongswan application for VPN connection, that advised by many respective VPN services

  2. Network providers are problematic and cut some traffic: No, because iPhone devices can connect to this VPN through standard settings. iPhone was connected to the same Wi-Fi and was in airplane mode for disable cellular network (I double checked that cellular network was disabled)

  3. Android devices that were on manual tests are problematic: No, because when I am not using Wi-Fi from my home provider, but using wi-fi from my iPhone hotspot the connection is Successful. Also another GooglePlay IKEv2 free VPNs is failed to connect

So based on these 3 points I have a very strange situation. Screenshots of android logs will be attached at bottom, with error connection(through wifi) and success connection(through iPhone hotspot) Also screenshot of VPN server error connection log will be attached

I am android developer, and have network developer in my team, so any additional questions please

Dear developers, please give me some advice on what I can do to test and understand what problem we have? Very need it, because based on this VPN serves android free VPN app will be created

Logs: Error logs #1 Error logs #2

cn flag
The logs show an authentication error (and not at all the "peer not responding" issue you mentioned). Check the server log for details on why that error is returned, or post the correct logs that show the other issue.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.