Answer the question
In order to leave comments, you need to log in
How to make POST request to local IP from NodeMCU (ESP8266)?
Hello.
There is nodejs, express, a raised server on 192.168.0.100:80
. There is a POST listener on /test
which outputs to the console request.body
. If you make a request in the browser console to this ip, then everything works.
There is a NodeMCU with ESP8266 connected to wifi, it has a local ip 192.168.0.103
. I make a POST request from it to the nodejs server and get fail, the request does not go through. For external addresses, for example, http://jsonplaceholder.typicode.com/posts
everything comes fine.
All devices work in the same wifi network connected to the same router.
Actually the question is about networks, ip and routing, how to make a request from 192.168.0.103
to192.168.0.100/test
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question