Hi all,
for some obscure reason I can't get my ESP8266 to work as an AP with an IP address other than 192.168.4.1.
Is there a way to either use the config page or some magic wifi commands incantation to let it be an AP at i.e. 10.0.0.1?
Any hint is much appreciated. Thnk you all for your kind support.
Cheers
Ulli
Using ESP8266 as an access point
-
- Posts: 47
- Joined: Tue Feb 09, 2021 9:48 am
- Location: Monschau, Germany
- Has thanked: 8 times
- Been thanked: 2 times
Using ESP8266 as an access point
The light at the end of the tunnel has been switched off for energy saving reasons.
-
- Posts: 222
- Joined: Mon Feb 15, 2021 1:44 pm
- Has thanked: 124 times
- Been thanked: 132 times
Re: Using ESP8266 as an access point
Hmm, I can confirm that. I've just tried to set up an ESP8266 in AP mode via the config screen and it will only use its ESP.... SSID at 192.168.4.1
However it does pick up the channel I specify. Annex version is 1.43.
(BTW, I'm glad to see someone else not using the boring old 192.168.x.x range. I use 10.10.10.x as it's soooo much quicker to type )
However it does pick up the channel I specify. Annex version is 1.43.
(BTW, I'm glad to see someone else not using the boring old 192.168.x.x range. I use 10.10.10.x as it's soooo much quicker to type )
- cicciocb
- Site Admin
- Posts: 1978
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 425 times
- Been thanked: 1320 times
- Contact:
- cicciocb
- Site Admin
- Posts: 1978
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 425 times
- Been thanked: 1320 times
- Contact:
Re: Using ESP8266 as an access point
I just tested and it works perfectly.
Have you entered all the parameters, including the gateway ?
Have you entered all the parameters, including the gateway ?
-
- Posts: 222
- Joined: Mon Feb 15, 2021 1:44 pm
- Has thanked: 124 times
- Been thanked: 132 times
Re: Using ESP8266 as an access point
I'd left the gateway blank, but unfortunately I was testing this on a project which is all glued together . . and I've foolishly just locked myself out of it.
I'll need to get inside and re-flash it, then try with all parameters.
Ulli, have you fully configured yours?
I'll need to get inside and re-flash it, then try with all parameters.
Ulli, have you fully configured yours?
-
- Posts: 47
- Joined: Tue Feb 09, 2021 9:48 am
- Location: Monschau, Germany
- Has thanked: 8 times
- Been thanked: 2 times
Re: Using ESP8266 as an access point
Hi Andy,
thanks for backing me up. Good feeling not to be the only one having problems here.
Hi cicciocb,
good to have the confirmation (from the author) that it works. No, I didn't specify a gateway as there is none. What should I enter there?
Cheers
Ulli
thanks for backing me up. Good feeling not to be the only one having problems here.
Hi cicciocb,
good to have the confirmation (from the author) that it works. No, I didn't specify a gateway as there is none. What should I enter there?
Cheers
Ulli
The light at the end of the tunnel has been switched off for energy saving reasons.
- cicciocb
- Site Admin
- Posts: 1978
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 425 times
- Been thanked: 1320 times
- Contact:
Re: Using ESP8266 as an access point
put the same IP as the module local IP[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Thu May 13, 2021 9:46 pm Hi Andy,
thanks for backing me up. Good feeling not to be the only one having problems here.
Hi cicciocb,
good to have the confirmation (from the author) that it works. No, I didn't specify a gateway as there is none. What should I enter there?
Cheers
Ulli
To be clear, put the same IP in the first and last IP boxes of the config page
You do not have the required permissions to view the files attached to this post.
-
- Posts: 47
- Joined: Tue Feb 09, 2021 9:48 am
- Location: Monschau, Germany
- Has thanked: 8 times
- Been thanked: 2 times
Re: Using ESP8266 as an access point
Thank you, cicciocb,
I'll give it a try. Can only reply my findings on Monday.
Have a great weekend.
Ulli
I'll give it a try. Can only reply my findings on Monday.
Have a great weekend.
Ulli
The light at the end of the tunnel has been switched off for energy saving reasons.
-
- Posts: 47
- Joined: Tue Feb 09, 2021 9:48 am
- Location: Monschau, Germany
- Has thanked: 8 times
- Been thanked: 2 times
Re: Using ESP8266 as an access point
Hi all,
just tried it filling in the gateway field with the same IP address and it now works as an AP.
Unfortunately, this is only half of what I'm trying to accomplish:
I have a home network, say 192.168.10.0/24 with gateway address 1. I want the ESP run in station mode with IP address 22. When I'm out of reach of my home network I want my ESP switch to AP mode with 10.0.0.1
As it is now, I cannot configure this in the /config page. Maybe there is a programmatic way. Not as nice as I would wish to have, but ok.
Thanks for any hints
Ulli
just tried it filling in the gateway field with the same IP address and it now works as an AP.
Unfortunately, this is only half of what I'm trying to accomplish:
I have a home network, say 192.168.10.0/24 with gateway address 1. I want the ESP run in station mode with IP address 22. When I'm out of reach of my home network I want my ESP switch to AP mode with 10.0.0.1
As it is now, I cannot configure this in the /config page. Maybe there is a programmatic way. Not as nice as I would wish to have, but ok.
Thanks for any hints
Ulli
The light at the end of the tunnel has been switched off for energy saving reasons.
-
- Posts: 47
- Joined: Tue Feb 09, 2021 9:48 am
- Location: Monschau, Germany
- Has thanked: 8 times
- Been thanked: 2 times
Re: Using ESP8266 as an access point
sorry, forgot to say, an immediate reconfiguration during program run is not necessary. It is perfectly ok to try to connect as STA on startup and, if it fails, open an AP with a constant IP address different from the STA network.
Example:
Switch on
try to connect to 192.168.10.0/24 with own IP 192.168.10.22
if that fails start AP mode with address 10.0.0.1/24
Cheers
Ulli
Example:
Switch on
try to connect to 192.168.10.0/24 with own IP 192.168.10.22
if that fails start AP mode with address 10.0.0.1/24
Cheers
Ulli
The light at the end of the tunnel has been switched off for energy saving reasons.