Port forwarding in Unreal Engine

Only the server needs to forward the ports it uses.

Otherwise, if it’s just friends, you can use a third-party VPN client like Hamachi or OpenVPN