emilianavt / OpenSeeFace

Robust realtime face and facial landmark tracking on CPU with Unity integration
BSD 2-Clause "Simplified" License
1.41k stars 151 forks source link

Packets on 369 of facetracker.py fail with VPN enabled #42

Closed DrSodaCan closed 2 years ago

DrSodaCan commented 2 years ago

Hello! After digging a bit with the program a little bit, it seems the "sock.sendto(packet, (target_ip, target_port))" line on 369 in facetracker.py simply doesn't function through a VPN connection Attached underneath is the error code produced

debug

Extra info that may be useful for reproducing error and to find fix: Windows 11 (64 bit, AMD CPU) NordVPN Connection -> default protocol Python 3.9 installed Doesn't work with test using unbranded "USB Camera" as webcam, additionally with it processed through NVIDIA Broadcast's Virtual camera wouldn't work either

emilianavt commented 2 years ago

Hi! The tracker is just sending the packets to the specified IP address, which is set to 127.0.0.1 (localhost) by default. Make sure that the address is accessible through your VPN software and it should work (127.0.0.1 should always be accessible unless the system/VPN is very broken in some way). It's just very normal network code.

DrSodaCan commented 2 years ago

Hello! Just checked again, just happens to be the "Split Tunneling" feature (which seems to cut off accessibility to the localhost as a byproduct) and not a bug indicative of using any specific VPN service