It depends on your connection.
If your computer has a public IP address, it is already on the Internet. Then you only need to allow connections to port 80, both on the local firewall and on the home / corporate firewall.
If your computer is located behind a set-top box or inside a corporate network, most likely you are not on the Internet. In some cases, the router performs NAT ( Network Address Translation ) between the local (non-routable) network and the Internet. In this particular case, you need to configure port forwarding on the set-top box or router.
source share