Page 1 of 1

Public IP

Posted: Wed Aug 10, 2022 5:53 pm
by MsVibe
Why do I get different answers for

Ifconfig wwan0

and

curl ifconfig.me

And how can I query the wwan0 address from a Linux host on the same network?

Re: Public IP

Posted: Tue Aug 23, 2022 12:07 pm
by Didneywhorl
I don't have an answer to your initial questions, but.....


Problem is your not going to get a public IP from your modem, because it doesn't know it. It is assigned a CGNAT IP that is internal to the carrier network. The network will route out your traffic and exit from one of their IPs, dynamically. Unless you paid for a public IP on that SIM ... assuming you are using a cellular connection.