user62892: i there!
i have Node Mcu which i want to connected with my home wifi 
after it it made it own station mode then i want to make it access point for other 
but now problem is that it is now in both mode mean (AP+Station ).
when i want to connect any other phone or Pc  it connected successfully 
but not providing internet to other devices.
Question?

is problem in wifi configuration of acess point?
which ip,gate way and subnet mask i would assign to the access point? 


user4143: The NodeMCU under the Arduino framework cannot do what you want.  There are basically three methods for what you want:

Configure the IP stack to enable routing - not possible in Arduino, and also requires configuration of your upstream router to work.
Configure the IP stack to enable routing and Network Address Translation - not possible in Arduino, and I am not sure if the stack even supports NAT.
Write a sketch to act as a proxy server - only works for certain types of traffic (HTTP) and requires a lot of coding. May be possible, but not an easy task.

1) and 2) certainly can't be don in Arduino. There are rumours on the internet that it is possible to configure and compile your own lwIP stack version with routing enabled, but that is so far outside the scope of this website.
Option 3 is the more realistic, but certainly not something even I would consider doing. Creating a sketch that works like squid, for example, would be a mammoth task, and may even hit the limitations of the ESP8266.
It would be more beneficial to perhaps get an old wireless router that is supported by OpenWRT and learn how to hack that to act as you want.

62892: <p>i there!
i have Node Mcu which i want to connected with my home wifi 
after it it made it own station mode then i want to make it access point for other 
but now problem is that it is now in both mode mean (AP+Station ).
when i want to connect any other phone or Pc  it connected successfully 
but not providing internet to other devices.
Question?</p>

<ol>
<li>is problem in wifi configuration of acess point?</li>
<li>which ip,gate way and subnet mask i would assign to the access point? </li>
</ol>
 4143: <p>The NodeMCU under the Arduino framework cannot do what you want.  There are basically three methods for what you want:</p>

<ol>
<li>Configure the IP stack to enable routing - not possible in Arduino, and also requires configuration of your upstream router to work.</li>
<li>Configure the IP stack to enable routing and Network Address Translation - not possible in Arduino, and I am not sure if the stack even supports NAT.</li>
<li>Write a sketch to act as a proxy server - only works for certain types of traffic (HTTP) and requires a lot of coding. May be possible, but not an easy task.</li>
</ol>

<p>1) and 2) certainly can't be don in Arduino. There are rumours on the internet that it is possible to configure and compile your own lwIP stack version with routing enabled, but that is so far outside the scope of this website.</p>

<p>Option 3 is the more realistic, but certainly not something even I would consider doing. Creating a sketch that works like <a href="http://www.squid-cache.org/" rel="nofollow noreferrer">squid</a>, for example, would be a mammoth task, and may even hit the limitations of the ESP8266.</p>

<p>It would be more beneficial to perhaps get an old wireless router that is supported by OpenWRT and learn how to hack that to act as you want.</p>
