A VPN, meanwhile, is designed to safeguard your device from online threats. VPN works by encrypting device transmission and tunnels the data packet through secure servers. By default, connecting to a VPN will disable port forwarding. All opened ports will be automatically closed by the VPN.