R
R
robjason2021-05-19 20:54:15
iOS
robjason, 2021-05-19 20:54:15

iOS IKEV2 VPN error: why can't I connect via iOS app?

I created my own VPN server (IKEV2) and I successfully configured and connected through the standard iOS VPN tools.

Screenshot:
60a5508b11e9a613565434.jpeg


I want to connect via iOS app.

Configuration code:
let p = NEVPNProtocolIKEv2()

p.useExtendedAuthentication = true
p.serverAddress = "133.37.212.77"
p.remoteIdentifier = "133.37.212.77"
p.authenticationMethod = .none
KeychainWrapper.standard.set("mypassword", forKey: Configuration.KEYCHAIN_PSK_KEY)
let secret = KeychainWrapper.standard.dataRef(forKey: Configuration.KEYCHAIN_PSK_KEY)
    
p.sharedSecretReference = secret


But nothing happens. What could be the problem? Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question