Need to see your routing table on #macOS or #FreeBSD or #Linux ? Type:
netstat -rn
The entry with the "G" flag is your gateway. #Linux users may want to use the ip command (look for "default" entry which is your gateway):
ip route show
See ip command guide https://www.cyberciti.biz/faq/linux-ip-command-examples-usage-syntax/ for more info.