B
B
Bahodir Ismatov2018-09-06 19:21:18
CentOS
Bahodir Ismatov, 2018-09-06 19:21:18

How to allow access to the server by port?

Hello, I have a CentOS 7 server running npm Application on port 3000. On the server itself, the Application works (you can access it via localhost:3000 or mydomen.ru:3000), but from computers on the LAN at mydomen.ru:3000 (server address) it gives a "timeout" error. At the same time, ngnix and apache also work on the server, and it is available via mydomen.ru

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Ryzhkin, 2018-09-07
@Baxa94

Maybe you didn't configure firewalld or iptables corny.

S
Stanislav Pugachev, 2018-09-06
@Stqs

try running the application on 0.0.0.0:3000
or in nginx/apache proxy requests to localhost:3000

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question