similar problem
created a vpn application. implemented a connection with parameters:
iPhone 7
iOS 14.0
NEVPNManager
ikev2 protocol
shared secret
wi-fi or lte
server ipv4
In ios 14.0, from the application, the configuration is added successfully, but when trying to connect from the disconnected state, the transition to the connecting state and again to the disconnected state occurs.
Moreover, if you create a configuration not through the application, but manually (with the same parameters), the connection is successful.
Reproduced 100 out of 100 cases.
I also tested it on a device with ios 13.7 - connecting to a similar server and with the same code is successful both from the application and when added manually.
Post
Replies
Boosts
Views
Activity
Apple Team,
still need your help!
console log
CALL LOAD TO PREFERENCES AGAIN...
NEVPNConnection: Disconnected
Starting VPN...
2020-09-24 22:38:37.049787+0300 VPN [22884:2923865] [connection] nwreadrequestreport [C1] Receive failed with error "Software caused connection abort"
NEVPNConnection: Connecting
2020-09-24 22:38:37.200825+0300 VPN [22884:2923865] Connection 2: received failure notification
2020-09-24 22:38:37.201898+0300 VPN [22884:2923865] [connection] nwflowaddwriterequest [C2.1 23.21.126.66:443 failed channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] cannot accept write requests
2020-09-24 22:38:37.201999+0300 VPN [22884:2923865] [connection] nwwriterequestreport [C2] Send failed with error "Socket is not connected"
2020-09-24 22:38:37.216222+0300 VPN [22884:2923865] [connection] nwreadrequestreport [C2] Receive failed with error "Socket is not connected"
2020-09-24 22:38:37.216349+0300 VPN [22884:2923865] Connection 2: write error 1:57
2020-09-24 22:38:37.218597+0300 VPN [22884:2923865] [connection] nwflowaddwriterequest [C2.1 23.21.126.66:443 failed channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] cannot accept write requests
2020-09-24 22:38:37.220645+0300 VPN [22884:2923865] [connection] nwwriterequestreport [C2] Send failed with error "Socket is not connected"
NEVPNConnection: Disconnecting
NEVPNConnection: Disconnected