With fixed IP, you cannot access outside the intranet

Issue #189 resolved
Geek created an issue

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)

  1. John Maloney repo owner

    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?

  2. Geek 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.

  3. John Maloney 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…

  4. Log in to comment