ss-abramchuk / OpenVPNAdapter

Objective-C wrapper for OpenVPN library. Compatible with iOS and macOS.
GNU Affero General Public License v3.0
482 stars 215 forks source link

get IP address #192

Open Jdgmx opened 4 years ago

Jdgmx commented 4 years ago

I'm getting a little lost in the NE documentation. What would be the recommended way to get the IP address that the device gets when connected to the VPN? Thanks.

Jdgmx commented 4 years ago

I'm successfully communicating with the network extension in the method func handleAppMessage(_ messageData: Data, completionHandler: ((Data?) -> Void)?)

But if adapter is my OpenVPNAdapter instance, then in adapter.connectionInformation?.clientIP I'm getting a nil value. What am I missing?