Cellular only VPN app

I have a requirement to create a VPN app which only works on Cellular. But I'm facing an issue like when wifi is ON, OS is using wifi interface to route the traffic instead of cellular. I tried some ways like

let cellularParams = NWParameters.udp cellularParams.requiredInterfaceType = .cellular

But this is not working properly as expected. How can I manually bind to cellular interface in iOS?

Answered by DTS Engineer in 851469022
How can I manually bind to cellular interface in iOS?

Well, setting the required interface type is manually binding to that interface.

There are other approaches you can take. I talk about these in gory detail in the various posts referenced by Extra-ordinary Networking.

However, I fear that the root cause of this is issue is NECP policy [1], and so your attempts will all end up being blocked. Still, it’s worth doing some more experimentation, just in case.

Share and Enjoy

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

[1] See A Peek Behind the NECP Curtain.

How can I manually bind to cellular interface in iOS?

Well, setting the required interface type is manually binding to that interface.

There are other approaches you can take. I talk about these in gory detail in the various posts referenced by Extra-ordinary Networking.

However, I fear that the root cause of this is issue is NECP policy [1], and so your attempts will all end up being blocked. Still, it’s worth doing some more experimentation, just in case.

Share and Enjoy

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

[1] See A Peek Behind the NECP Curtain.

Cellular only VPN app
 
 
Q