# Is there a way to make ESP8266 a WiFi hotspot?

On many ESP8266 tutorials, I learn that ESP8266 (Node MCU 1.0, ESP-12E) can operate in station mode and access point mode at the same time. That makes me wonder: is it possible for one ESP8266 module to act as a WiFi hotspot? That is, to share internet connection with other devices, so that when access point is enabled, and a phone is connected, then the phone can visit websites like google.com.

Is this possible to achieve with Arduion codes (or other methods)? If so, a reference or link for that would be really helpful.

• Yes, it's possible. Example code that does this is installed by default if you enable the ESP8266 Core in the Arduino IDE. Just look for it under File->Examples. Aug 6 at 15:30
• @StarCat I might have overlooked something there. Do you mind telling me the name of that example? Many thanks! Aug 6 at 18:20
• the RangeExtender-NAPT example Aug 7 at 5:40
• Aug 7 at 8:18
• Sorry for the late reply. I had to look it up. The example I remember seeing is the RangeExtender-NAPT example under Examples->ESP8266WiFi, mentioned by Juraj. Aug 8 at 18:02