-->
Page 1 of 2

Problems to get answer from SoftAP

PostPosted: Sun May 27, 2018 6:50 am
by amshh
Hello!
First contact with Arduino/ESP.

Used with a ESP8266-01.
Try to set up a Soft-AP and get answer from there. But no success until now.

You can find attached:
Arduino-Programm with two Options to be un-comment:
O1: Attach as client to my WLAN-Router.
O2: Create Soft-AP and offer an own Network.

Then configure and start a server.
Wait for a client request and answer with a simple <h1> Headline.

Behaviour:
O1: See attached monitor protocol.
- Client connection established
- Request is received
- Answer can be read in browser I used to call the URL 192.168.0.97
OK SO FAR

O2: See attached monitor protocol.
- Soft AP established
- Connect with cell phone
- Number of connections becomes 1
- Call the URL 192.168.4.1 from cell phone browser
- NOTHING
NOT OK SO FAR

So ... does someone has a hint?

Re: Problems to get answer from SoftAP

PostPosted: Mon May 28, 2018 4:54 am
by amshh
OK, added
IPAddress ip(192,168,0,200);
IPAddress gateway(192,168,0,200);
IPAddress subnet(255,255,255,0);

WiFi.softAPConfig(ip,gateway,subnet);

Then I get the expected response when using a windows client.
Does not work with my mobile .... :-(
A.

Re: Problems to get answer from SoftAP

PostPosted: Thu May 31, 2018 7:54 am
by majidmp97
how can i have 1 8266 as (192.168.1.255) access point and 8266 for client without rooter
and client have static ip
when access point request from client (192.168.1.1) then client send string (19;12.2;1) to access point

Re: Problems to get answer from SoftAP

PostPosted: Thu May 31, 2018 9:10 pm
by tele_player
If your mobile isn’t connected to your WiFi network, you need to set up port forwarding on your WiFi router to allow access from an outside network.