[Tip] How to find the IP address and hostname of your computer

ip command also has a brief mode for address:

$ ip -br a

This potentially gets alot of results, depending on hosts configuration in /etc/nsswitch.conf.
The IP address of the router is not necessarily among those entries.