curl ifconfig.me and ifconfig showing different results
If I run curl ifconfig.me
I get one IP and if I run ifconfig
, I get other IP's. Why is it so ?
Solution 1:
ifconfig
is grabbing your local, NAT'd IP address. curl ifconfig.me
is grabbing the public IP provided to you by your ISP.