-->
Page 1 of 1

Can't connect to web server when in wifi.STATION mode

PostPosted: Wed Feb 11, 2015 4:25 pm
by nfriedly
I just copy-pasted the http server example, and it works great when I set my wifi mode to STATIONAP - then I can connect to the AP and see the "Hello, NodeMcu." message.

But, when I connect to my home wifi in STATION mode, then I can't seem to connect to the nodemcu's server. curl and chrome both just time out.

I know it's online and connected to my network properly because the http client example will fetch nodemcu.com and dump the hmtl to the command line.

I'm a little bit suspicious of my router blocking wireless-to-wireless connections, but I even had it try to connect to itself via both 127.0.0.1 and wifi.sta.getip() and the connection fails either way.

Any idea what's going on?

Re: Can't connect to web server when in wifi.STATION mode

PostPosted: Wed Feb 11, 2015 10:16 pm
by nfriedly
Update: I got ahold of a different wireless router, and when I connect the ESP and my laptop to it, I can see the web page. So I'm pretty sure it is my router pulling shenanigans.

For the record: the broken router is a Netgear WNDR3700v2 that I paid around $100 for.

The working router is a Belkin something-or-other that I paid $18 for at a flea market :/

Re: Can't connect to web server when in wifi.STATION mode

PostPosted: Thu Feb 12, 2015 6:08 pm
by nfriedly
And, as a second update, I flashed OpenWRT onto my router and now everything works properly!