If you simply want to run the node as a passive node you do not need a public IP address, but most people that want to run Jormungandr want to run it as a stake pool. In order to use the Jormungandr node as a stake pool, you need a public IP address. Technically you already have a public IP Address, what you need is the configuration that allows specific traffic from that IP address to be delivered to ONE machine inside your network; this is known as Port-Forwarding.
One other thing to keep in mind, most Internet providers provide you with what is known as a dynamic IP address. A dynamic IP address can change at any time. Please note, the amount of time between IP address changes for a dynamic IP address could be hours, days, months, or sometimes never. If you have a dynamic IP address you might get your node set up and running fine only to check it later and notice it is basically off-line. To make sure this doesn't happen, you need what is known as a static IP address (which your internet service provider will probably happily charge you for), or you need to keep an eye on your external IP address and update your config and stake-pool registration as it changes.
Curious what your public/external IP address is right now? Go to --> https://www.canyouseeme.org/ (This is an external site which IOHK does not endorse or control)
When you set up your router to allow incoming traffic using port forwarding, you are in essence creating a small hole in the wall that keeps unwanted traffic out of your network. If you configured port forwarding correctly this won't cause any immediate security issues, but unless you keep your Jormungandr node updated with the latest version you could quickly find yourself in trouble. Once a newer version of the Jormungandr node is released, it doesn't take long for bad actors to reverse engineer the changes and see if the latest release contained an issue that they could exploit that would allow them unrestricted access to the rest of your network. For that reason alone, it would be better to run the Jormungandr node software on a dedicated machine that is connected to a separate network which cannot access your other machines.
How to set up Port Forwarding for your public IP address
Are you knowledgeable?
Setting up the configuration is EXTREMELY specific to your network and your router. If you are not fairly knowledgeable about your network setup or you don't have configuration access to your router, you won't be able to set up port forwarding and therefore you will not be able to run a stake pool node that is located on this network.
At your own risk
IOHK does not support or endorse port forwarding. If you set up port forwarding, you do so at your own risk. This article is provided as informational purposes only.
To set up port forwarding
- Log into the management interface on your router and find the section that deals with the "firewall" and/or "routing".
- From there, there might be an "Advanced Settings" section, but what you are looking for is something like "Port Forwarding" or "NAT Traversal".
- Once you locate that section, you will want to configure the Jormungandr port number that you set up in your config.yaml file to be allowed through the firewall and set the destination to the IP address of your Jormungandr node/machine and save the new configuration.