System Preferences > Network
and select the interface that you use to connect your Mac to the network from the list on the left. In our example, it’s a Wi-Fi connection.System Preferences > Network > Wi-Fi
(or Ethernet, depending on connection type) > Advanced > TCP/IP
.