Open the Terminal application. To do this, click Finder > Applications > Utilities > Or alternatively you can click on Launcher and type Terminal in the search bar.

When is open, type the following command: netstat -nr | grep default

This will output the following:

joe$ netstat -nr | grep default

default UGSc 50 46 en1

In this example, is your default gateway (router) IP address.