FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

13305 questions

15793 answers

25510 comments

50163 members

0 votes
96 views 2 comments
by
Hello, I am currently trying to find a way to view my Public IP on a TRB245 other than finding it on websites like whatsmyip.

I've found a way to push the private IP via modbus towards thingsboard without any issues, however I don't think I can do it with the public one.

I've already set up my APN and can access internet without any issues.

Thanks in advance
by
For those interested, I just got the address with a dig command (dig +short myip.opendns.com @resolver1.opendns.com) , then put it in a variable and then pushed it to thingsboard with a curl POST. Low effort solution but it works well.

1 Answer

0 votes
by

Hello,

You can view IP assigned to a WAN interface in Network -> Interfaces section.

If you can access the router vis CLI/SSH, execute the following commands:

  • ifconfig wwan0
  • gsmctl -p mob1s1a1

Best regards,

by
Yes, but this allows me to get the IP that's in the 10.X.X.X range, while I'm looking for the one that goes over the internet which would be like 80.X.X.X