In case you plan to do port forwarding, then you must have a static IP address. At the time of port forwarding, your router forwards ports to a particular IP address. If you don't have a static IP address set up already, then that means you are forwarding ports for the first time.
Once you restart your PC, it will use a different IP address. When that will happen, the ports will not be forwarded to the IP address of your computer.
An IP address is is a set of numbers separated by four dots or periods. Every computer on the network has one IP address. Two computers on the same network shouldn't have the same IP address. In case two PCs have the same IP address, then you will not be able to connect them to the internet.
Below are the steps that you need to carry out in order to set up a static IP address for Windows 10.
Step 1: Launch the Windows 10 start menu by clicking on the Windows icon given at the lower-left corner of the screen. Type cmd in the search menu and then press the enter key.
Step 2: A window will appear on the screen before you. Here in this window, you are required to type inconfig /all and then press the enter key.
Step 3: From this window, you need to write three things. These include DNS servers, Subnet Mask, and IPv4 address. When you note these things down, make sure which is which because you will need these details later. Now, close the command prompt by typing exit.
Step 4: After that, launch the start menu once again by going to the lower-left corner of the screen. Then, type Control Panel in the search area and then press enter.
Step 5: Then, you need to click on the link that has the title "View network status and tasks" below the heading of "Network and internet".
Step 6: Now, you will see a link on the left side of the Window named as "Change adapter settings".
Step 7: After that, you may see more than one internet connection on the window appearing before you. When such a thing happens, then you must find out which one is your network connection.
Once you are done finding it, go to the network adapter and right-click on it. Select properties to launch the properties window of network connection.
Step 8: Search for the option of Internet Protocol Version 4 and then select it. After that, choose the option given below the title of properties.
Step 9: Now, the general tab of the Internet Protocol Version 4 properties window will open up before you. You are required to write down all the settings prior to making any changes in this Window.
If you do so, then you can put things back to the way they were earlier. You will see a circle with a dot in it right next to the option of Obtain an IP address automatically. In case you don't see this option, then that means your static IP address is set up already. Now, close the window because your work is done here.
So, these are all the steps that you need to perform in order to set up a static IP address in Windows 10.