T
T
Torento203452021-06-12 21:52:13
Express.js
Torento20345, 2021-06-12 21:52:13

How to set up sending a request to another server with a different port?

We start the server on port 3000, which receives our requests for the domain.
How can I send an api request from it to an internal server from the same machine that runs on port 4000?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kentavr16, 2021-06-12
@Kentavr16

If I understood correctly, then you want to run the server and client on the same machine? Proxy will help you. Google - the rules for prescribing a proxy depends on the platform

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question