T
T
theITmonster2021-08-05 00:46:21
Node.js
theITmonster, 2021-08-05 00:46:21

How to connect node js application to ip:port?

I have a hosting to which I need to connect a node js application in order for it to work. I have a telegram bot, and somehow in the script you need to specify the hosting IP and port, and connect the bot to it. How can I do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Developer, 2021-08-05
@theITmonster

Through nginx. You put it on the server and in the config you set the port to nodejs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question