OS Error 113 when trying to get outside of LAN
I hope someone can help here with a possible reason for the LoPy (in WiFi STA mode) not being able to access the Internet.
If I run this very simple bit of code from the Python IDLE it works no problem, but, the same code on all of our 5 LoPy's generates an error OSErr 113 on the 'connect'.
s = socket.socket()
a = ('18.104.22.168',80)
We have set the DNS Server address which is now retained using the wlan.ifconfig() properly under 0.9.1.b1 firmware (although using getaddrinfo on micropython.org came back with an address of '22.214.171.124').
As mentioned, if we try the code on a PC on the same LAN there is no problem at all with connections.
That works fine with DSN address set to '0.0.0.0' thank you @daniel
What happens if you don't set the dns address?