Custom VPN - Bind interface to Cellular

This thread has been locked by a moderator; it no longer accepts new replies.

I'm creating a custom VPN app which should only work on Cellular. Apart from cellular interface binding VPN is working fine. Even though I specified cellular interface like

let cellularParams = NWParameters.udp

cellularParams.requiredInterfaceType = .cellular

It is going via Wifi when it is ON. I know this is the default iOS behaviour.

How can I prevent this and route through cellular only even when Wifi is enabled on device?

Answered by DTS Engineer in 851475022

Let’s focus this discussion on your other thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Boost

Let’s focus this discussion on your other thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Custom VPN - Bind interface to Cellular
 
 
Q