vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.91k stars 713 forks source link

knowing Local IP Address #9

Closed mushfiq-heraclius-xen closed 6 years ago

mushfiq-heraclius-xen commented 7 years ago

is there any function in TinyGsm class so that i can get the Local IP address assigned by GSM operator after calling gprsConnect() function ????? Thank you!

vshymanskyy commented 7 years ago

Which modem model do you need it for?

mushfiq-heraclius-xen commented 7 years ago

SIM800L please :) @vshymanskyy

mushfiq-heraclius-xen commented 7 years ago

i think you can add up functions like getLocalIP for every model :) thanks @vshymanskyy

bsiege commented 7 years ago

SIM800//SIM900 Serial3 << (F("AT+CIFSR")) << endl;//get local IP adress But mostly this will not help because it is CGNAT'ted to public internet. For public IP you need some external service, which could not longterm reliable and data consuming. In my case i prefer to log sensor IP on the receiver (server) side.