-->
Page 1 of 1

No internet access when using WiFi.config

PostPosted: Thu Apr 11, 2019 12:10 am
by dibrony
Hi all,

I wrote a small sketch that is working perfectly once connected to the internet.
However, in order to have a static IP, I used the WiFi.config(ip, subnet, gateway) method, choosing below values:
IP within the range (192.168.100.13)
subnet same as the router (255.255.255.0)
gateway same as the router (192.168.100.1)

The problem is when using this method, i am not able anymore to connect to the internet, I got connection fail...

What did I do wrong ? Any advice ?

Thanks
Rony

Re: No internet access when using WiFi.config

PostPosted: Thu Apr 11, 2019 2:34 am
by btidey
If you have access to router then I would choose to use static dhcp set up in the router rather than fix ip addresses in the devices. That way you get central control of the ip addresses and avoid any potential conflicts.