Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ebukz's avatar

How can I open a new port ?

I would like to open port 9200 on my digital ocean server for Elasticsearch. I have tried the following

sudo iptables -A INPUT -p tcp --dport 9200 -j ACCEPT
sudo ufw allow 9200

They run fine but when I check my available ports with netstat -ntulp I get cannot find them

Anyone with a suggestion ?

0 likes
1 reply
bobbybouwmann's avatar

All ports are open by default. The port won't be considered "open" until something is listening on it. You might have to configure it to listen on 0.0.0.0 instead of 127.0.0.1 or localhost.

Please or to participate in this conversation.