With fixed IP, you cannot access outside the intranet
Hello
With nodeMCU, using the fixed IP block in a intranet without DHCP server, I can access to the intranet but is not possible access to internet.
DNS, maybe?
Comments (5)
-
repo owner -
reporter The network has all computers with a fixed IP address and there is no DHCP server. Everyone can access the intranet and the internet without problems.
From NodeMCU, I can make HTTP requests to servers within the intranet without problems, but when I try to make HTTP requests from NodeMcu to servers outside the intranet I don't succeed. -
repo owner Check your router settings to see how the other fixed IP address computers are configured. You may need to make an entry for your NodeMCU in the router. The router has to provide an external IP address for the NodeMCU and map that to its internal address within the WiFi network. I don’t have any experience running a router without DHCP, so I’m not sure what needs to be done, but I strongly suspect something has to be set up in the router to make this work…
-
repo owner - changed status to resolved
-
reporter Each computer is configured with a fixed IP, not from the router but from its own configuration. So I wanted to do the same from nodeMCU
I’ll keep investigating
Interesting (About DNS) …
https://www.luisllamas.es/como-configurar-una-ip-estatica-en-el-esp8266/ (in spanish)
Thank you
- Log in to comment
What are you trying to do?
Are you trying to make an HTTP request from the nodeMCU to a server outside the intranet? If so, does that work from a laptop or desktop computer connected to the same intranet? Does it still work if the laptop/desktop has a fixed IP?
Are you trying to access the nodeMCU from outside your internet? In that case, I think you need to configure your router to provide an external IP address for the nodeMCU using something called “Network Address Translation” (NAT). (See https://en.wikipedia.org/wiki/Network_address_translation).
Either way, I’m guessing that the solution will involve adjusting your router settings. Unfortunately, I don’t know much about router configuration, NAT, and IP address assignment, so I can’t help with that. @Bernat Romagosa , any suggestions?