Posts

Post not yet marked as solved
11 Replies
It sounds like the VPN in this case is going down and maybe this is less to do with the remote side of the connection. In the container app, are you tracking the NEVPNStatus? NEVPNStatus is connected and also NWConnection's status is ready I've just realized. when send Icmp packet to our dns it unreachable, because I don't waiting icmp protocol so I don't routing icmp packet. Could this be the problem?
Post not yet marked as solved
11 Replies
Are you able to see a status update in the stateUpdateHandler for NWConnection to attempt to try the reconnection when these issues take place? no, sending connection packet, system receiving back response but not receiving connection packet, it happens more for dns packets. I close nwconnection and open it again, the problem persists. the problem is solved when vpn is turned off and on.
Post not yet marked as solved
11 Replies
Hi Matt Eaton, I used NWConnection still the problem persists. Usually within a day when the device sleeps and wakes up or when interface(wifi to cellular, cellular to wifi) change several times. NWConnection.receiveMessage always waiting, not get data. I'm watching with Wireshark, I see the packet without any problem. I think this problem occurs when a little too many packages drop
Post not yet marked as solved
11 Replies
Thanks Matt Eaton, I searched for NWConnection, I like it very much. But I could't found any documentation comparable NWConnection and NWUDPSession which one has better performance? which one is more stable? i want encrypte our UDP(specific port like 5098 ) packet and transfer to server also I want to encrypte all dns packet, so can i get only udp packet from specific ports (dns 53) with NWListener then transfer with NWConnection I use PacketTunnelProvider Thanks for your help.
Post not yet marked as solved
11 Replies
Thanks for your answare, I don't use tcp connection only udpsession and i don't try NWConnection before, i try reload NEPacketTunnelNetworkSettings it still doesn't work. Can I use NWConnection instead of NWUDPSession, what is different between NWConnection and NWUDPSession, which is the best for use. this is not always a problem when the interface is changed a few times