Second, if you set up your own domain name, it won't work, and the external dns can't be mapped!
So your local machine is directly connected to the external network, and you need to use an independent external network ip directly, so only consider the port problem, which is a trivial matter!