There are two ways to get an IP address:
Dynamic: A computer automatically requests an IP address when connected to the network and will receive a reply containing an available IP address from a DHCP server.
Static: A computer is configured manually with a specific IP address by a user or network administrator and does not automatically change when connecting to a different network.
This blog post shows how to set a static IP on Windows 10 Machine.
Setting a Static IP Address
Open Start menu, click Settings icon to open Settings
On Settings tab, click Network & Internet.
On Status tab, Click Change adapter Options
On network connections tab, double click the desired network connection to open its properties.
On General, set the option Use the following IP address and type the desired IP address,
Specify values for Subnet mask, Gateway and DNS servers for your network configuration and click OK.