ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By jhinkle
#47371 I've implemented the RTOS version -- nice work.

The server opens a connection when accessed via the stations IP address.

If I use a IP - connect to the AP -- and then ask to access a web page -- the server does not see the request.

The code for opening the socket does not distinguish station or AP mac or IP -- so can anyone explain why access the AP port 80 (as in requesting a page or link) does not produce a response from the listen.

Thanks for any insight.
User avatar
By IOT@urremote.com
#47383 Here is an example of a library in the Arduino development environment where the web server is visible simultaneously on the network to which it is connected as well as the WiFi network it is hosting. See https://github.com/kentaylor/WiFiManager . It is even visible at the same IP address on both networks as well as a default IP address on it's hosted network.
User avatar
By jhinkle
#47395 Thanks for the reply. I looked at the project and into your WifiManager but it does not shed light on my question. I don't use the Adruino IDE and I "think" it uses the non-os implementation.

My question is specific to the RTOS implementation.

I got it to respond ... here is how ...

When I asked the question the Ipad always responded "no Internet available".

Wish wireshark could track wireless!!!!

I added a DNS Server.

In user_init() I called wifi_softap_set_dhcps_offer_option(OFFER_ROUTER, &mode);
which informed any wireless device acquiring an IP from the AP that the AP was also a DNS server.

I implemented a DNS Server (a task) - that would return the AP's IP address for any DNS request.

Now if I enter any web site name --- BANG!! -- the web server is notified and responds.

Simple little DNS server addition solved my issue.