Technically you can connect to a local server while having it configured for external use behind a NAT... but the only way to reliably do this is by using a VPN. Not all VPN configurations work, allow you to circumvent the NAT. ProtonVPN and Privado work. Windscribe worked as long as you do not use split tunnel.