My Setup
- Arduino IDE 1.6.9
ESP8266 Libraries v2.2.0
NodeMCU 1.0 (ESP-12E module)
I'm running the WifiClient example and have added the settings for my WiFi. This works flawlessly.
I can connect to various external URLs but client.connect() fails whenever I try to connect to an address on my local subnet.
The address I'm connection to is accessible from other devices on the same subnet. I have even configured port forwarding so I can connect to my router's external IP address and that works OK. I've also tried running the same server (it is Node.js) on a Raspberry Pi instead of Windows but it is unable to connect directly.
It looks as if the connect function is unable to route to addresses on the same subnet. Perhaps it's trying to send all traffic through the default route or gateway.
Has anybody else encountered this? Better still has anybody got a solution?