Using Terminal

Using Mac OS Network Perferences

  • This line will have your router IP address. In this case router IP is On this screen you can also see your current IP address (IPv4 line) and your Subnet mask (Subnet line)
  • In the same dialog you can also change your DNS servers to a different ones on DNS tab and change your computer name on the network in WINS tab