I created a tunnel “utun1” on the A device (the local ipv4 ip address of the tunnel “utun1” is 6.6.6.6) and then created a socket in the packettunnel process (socket binding 6.6.6.6:8088) and called the accept() function, then the A device Turn on the personal hotspot (hotspot name iPhone Wi-Fi), and then connect the B device to Wi-Fi (iPhone Wi-Fi). Create a socket on device B and try connet (6.6.6.6:8088), my question is why the socket of device B cannot connect to 6.6.6.6:8088
As for your specific question I suspect that because you are connecting via a personal hotspot interface that you are coming in through that interface and are not able to reach the tun1 interface directly from Device B. What are you looking to achieve here? Are you trying to share Device A's VPN?
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com