Greetings, for example, there is one server and a bunch of additional dedicated IP addresses. How can I run multiple scripts on node.js from different IP ? After all, always when you run node.js starts with default ip.
It will not be express and similar server frameworks in which you can specify IP. For reference, libraries for steam will be used.
|
1 answer
Put nginx. In it, listen to different ip.
server { listen 192.168.0.100:80; ... } To run node.js scripts on different ports, and in nginx to redirect requests to different ip to different ports on which scripts are running on node.js.
- in my scripts node.js there is no server in which I can select the port to run. There is also no link access, this is not a site. This is a bot that is authorized in steam and receives requests from it, using its own methods. I somehow need to make every bot be at different ip addresses. - Vladislav Siroshtan
|