Select Start, then type settings. Select Settings > Network & internet.
Do one of the following:
For a Wi-Fi network, select Wi-Fi > Manage known networks. Choose the network for which you want to change the settings.
For an Ethernet network, select Ethernet, then select the Ethernet network you’re connected to.
Next to IP assignment, select Edit.
Under Edit network IP settings or Edit IP settings, select Automatic (DHCP) or Manual.
To specify IPv4 settings manually
Under Edit network IP settings or Edit IP settings, choose Manual, then turn on IPv4.
To specify an IP address, in the IP address, Subnet mask, and Gateway boxes, type the IP address settings.
To specify a DNS server address, in the Preferred DNS and Alternate DNS boxes, type the addresses of the primary and secondary DNS servers.
To specify if you want to use an encrypted (DNS over HTTPS) or unencrypted connection to the DNS server you specify, for Preferred DNS encryption and Alternate DNS encryption, choose the setting you want.
To specify IPv6 settings manually
Under Edit network IP settings or Edit IP settings, choose Manual, then turn on IPv6.
To specify an IP address, in the IP address, Subnet prefix length, and Gateway boxes, type the IP address settings.
To specify a DNS server address, in the Preferred DNS and Alternate DNS boxes, type the addresses of the primary and secondary DNS servers.
To specify if you want to use an encrypted (DNS over HTTPS) or unencrypted connection to the DNS server you specify, for Preferred DNS encryption and Alternate DNS encryption, choose the setting you want.
When you select Automatic (DHCP), the IP address settings and DNS server address setting are set automatically by your router or other access point (recommended).
When you select Manual, you can manually set your IP address settings and DNS server address.
When you’re done, select Save.