Posts

Post not yet marked as solved
5 Replies
1.3k Views
Dear Concern,We have developed module to create HTTP, SIP, RTP, SRTP, RTCP and MBCP connection with server based C/C++ based network api included in net/if.h, neinet/tcp.h etc.We want to force all of our network traffics(HTTP, SIP, RTP, SRTP, RTCP, MBCP) through LTE, even iPhone has a connection with WiFi.With NWParameter,let parameters = NWParameters(tls: options) parameters.prohibitedInterfaceTypes = [.wifi] After that, We have to create NWconnectionguard let endPoint = NWEndpoint.Port(rawValue: 4420) else { return } con = NWConnection(to: .hostPort(host: NWEndpoint.Host("somehostname.com"), port: endPoint), using: parameters) This works in some HTTP request. Is there any way in native api where we can block the WiFi interface and transfer all traffic through LTE?Or any generic api which will block WiFi for that specific app?Because, If WiFi is enabled, by default, we are only reachable to WiFi and getting ip address of WiFi interface.Best regardsArup Sarkerarupcsedu@gmail.com
Posted
by arupcsedu.
Last updated
.