I
I
Ihor Bratukh2018-09-15 22:38:16
Computer networks
Ihor Bratukh, 2018-09-15 22:38:16

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 /testwhich 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/postseverything 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.103to192.168.0.100/test

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TyzhSysAdmin, 2018-09-15
@BRAGA96

firewall

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question