TCP Client-obtaining the allocated IP address


#1

Hello,

I was wondering what function do I use to obtain the dynamic allocated IP address when connected to the APN?

Cheers
Paul


#2

Hiya,

I’m assuming that you’re using the WIP library here.

After getting the WIP_BEV_IP_CONNECTED event, use the wip_bearerGetOpts() function with the appropriate options (at least WIP_BOPT_IP_ADDR to get your own IP address - there are more…).

There’s some code in one of the WIP examples that shows this.

ciao, Dave