Unless you are using a 56K modem or an older DSL modem, ifconfig will tell you your LAN address, not your internet IP address.
Certain websites will return your IP address. Use one of these BASH commands:
curl echoip.com; echo
or you can can use a browser with one of these URLs:
ifconfig.me, echoip.com, whatismyip.com, http://checkip.dyndns.com/
or find the LAN address of your modem or router with this BASH command:
Type the numeric IP into your browser to get to an information page
You might need a password or modem access code, printed on the DSL modem