ESP8266 Developer Zone The Official ESP8266 Forum 2016-07-26T09:21:17+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=2469 2016-07-26T09:21:17+08:00 2016-07-26T09:21:17+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2469&p=8122#p8122 <![CDATA[Re: How to get AP's IP address]]>
AT+CWMODE_CUR=3, means "softAP + station mode", the AP's IP address is the module its own SoftAP's address. It's not the gateway's IP address. Under this mode, "AT+CIFSR" commands do print-out its own SoftAP's address IP address, but not the gateway's IP address.

I am using "AT+CWMODE_CUR=1", means "station mode" only. Under this mode, "AT+CIFSR" commands doesn't print-out the connected AP's IP address (or gateway address).

The output message of command "AT+CIFSR" is not consistent for different mode.

Statistics: Posted by ftdiyun — Tue Jul 26, 2016 9:21 am


]]>
2016-07-26T07:10:20+08:00 2016-07-26T07:10:20+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2469&p=8120#p8120 <![CDATA[Re: How to get AP's IP address]]>
ftdiyun wrote:
I tried this using the latest AT firmware, but there is no information about AP's IP


Perhaps you forgotten to enable AP by AT+CWMODE_CUR. Use either AT+CWMODE_CUR=2 or AT+CWMODE_CUR=3. Here is my initialisation sequence:

AT+CWMODE_CUR=3
AT+CWJAP_CUR="xxx","xxx"
AT+CIPMUX=1
AT+CIPSERVER=1,1300

After that I can query IP addresses:

AT+CIFSR

Statistics: Posted by akouz — Tue Jul 26, 2016 7:10 am


]]>
2016-07-25T20:52:52+08:00 2016-07-25T20:52:52+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2469&p=8116#p8116 <![CDATA[Re: How to get AP's IP address]]> AT command may be : AT+CIPSTA_CUR?

Statistics: Posted by Her Mary — Mon Jul 25, 2016 8:52 pm


]]>
2016-07-25T16:58:12+08:00 2016-07-25T16:58:12+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2469&p=8107#p8107 <![CDATA[Re: How to get AP's IP address]]>
Thanks for your reply. I tried this using the latest AT firmware, but there is no information about AP's IP. Please check the information as below:

AT+CIFSR
+CIFSR:STAIP,"192.168.1.5"
+CIFSR:STAMAC,"18:fe:34:a6:01:a9"
OK

at+GMR
AT version:1.3.0.0(Jul 14 2016 18:54:01)
SDK version:2.0.0(656edbf)
compile time:Jul 22 2016 12:02:54
OK

Statistics: Posted by ftdiyun — Mon Jul 25, 2016 4:58 pm


]]>
2016-07-25T12:37:12+08:00 2016-07-25T12:37:12+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2469&p=8099#p8099 <![CDATA[Re: How to get AP's IP address]]>
For example, I've got the following replies (bold text) to that command:

+CIFSR:APIP,"192.168.4.1" - AP address
+CIFSR:APMAC,"1a:fe:34:fe:89:8d" - AP MAC
+CIFSR:STAIP,"192.168.1.104" - station address
+CIFSR:STAMAC,"18:fe:34:fe:89:8d" - station MAC

Statistics: Posted by akouz — Mon Jul 25, 2016 12:37 pm


]]>
2016-07-25T10:05:15+08:00 2016-07-25T10:05:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2469&p=8095#p8095 <![CDATA[How to get AP's IP address]]>
When the ESP8266 acting as a station, and connected to an AP, how can user know the AP's IP address? I went through the API docuement "2c-esp8266_non_os_sdk_api_reference_cn", I didn't find a proper API to do this. Can you provide some hints or solution to get AP's IP address? Thanks.

Statistics: Posted by ftdiyun — Mon Jul 25, 2016 10:05 am


]]>