zayoo
March 30, 2019, 9:03pm
1
Hello All,
I need help or just link were to find it.
System which I building is:
-ESP8622 in AP mod
-Socket TCP communication to Android application.
-Android mobile phone
-bunch of sensors with AD converters
-On system location is not available access point neither rooter.
I establish WIFI connection to ESP8622 and communication with Android software but also, in same time I need connection to mobile network and internet.
Please can somebody share links where I can find more information about this problematic??
Best regards
zayoo
April 3, 2019, 12:37am
2
First solution is described hire:
opened 01:57AM - 21 Apr 16 UTC
closed 08:04PM - 26 Sep 17 UTC
Hi,
with the ESP in AP mode, it acts as a DHCP server.
when doing that, it han… ds out IP addresses to any client and also it tells them network information like the DNS servers and gateways.
And thats exactly my problem. When a DHCP server hands out DNS server and default route-adresses, a mobile device like my android smartphone will try to use the ESP8266 as a router to get to the internet -- which will of course fail.
This could be prevented by not sending the DHCP options 3 and 6.
Screenshot: https://screenshot.tbspace.de/vetdnfuhizk.png
Is there anyway to disable or configure the DHCP payload which is sent by the ESP?
Thanks,
Tobias
## <bountysource-plugin>
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/33175723-dhcp-options-in-ap-mode?utm_campaign=plugin&utm_content=tracker%2F14245935&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F14245935&utm_medium=issues&utm_source=github).
</bountysource-plugin>
Second option is:
Configure esp8266 WIFI as station and use mobile hotspot to connect.