• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question open door 2083 server centos 7

costasias81

New Pleskian
I have a problem regarding port 2083: I can't open it. I have iptablet installed on my server, I ran:

sudo iptables -A INPUT -p tcp --dport 2083 -j ACCEPT

then rebooted with sudo service iptables save.

iptables-save | grep 2083

but it does not open anything. It is always closed, I need to open this door to retrieve data from an external site, calling them in php with

<?php $numberOfUsers = file_get_contents("https://chat.html5-chat.com: 2083/getUsers/1/999 ");
echo $numberOfUsers;
?>

even if I disable iptable does not download the data.

I can't get port 2083 to listen
 
Last edited by a moderator:
even if I disable iptable does not download the data.

I can't get port 2083 to listen
wrong direction. If you want to connect to port 2083 on another server, you don't need to open anything locally at all.
While it is possible that outgoing packets are blocked, that is highly unlikely and you would know you configured that yourself.

Besides, for a port to be open, you not only need to open the firewall (if you have a firewall with a block-by-default rule at all), but there also needs to be something listening on that port. The firewall just prevents packets from getting to the IP stack, but you still get "Connection refused" when there isn't anything running that wants to take that connection. But, as stated above, that would only be relevant on the other server.

So there must be another reason.
Either your code is bad inherently (does file_get_contents do what you think it does? https://chat.html5-chat.com:2083/getUsers/1/999 returns a set of {id, username} key-value pairs) or you might have a typo somewhere.
From the fact that this forum split up the URL you posted but not mine, I suspect you have an extra space before the 2083 which might mess things up.
 
I am convinced that it depends on the port, if I insert google.it file_get_contents it works, and I download the page. if it was a code problem, it wouldn't have worked with google.it test
 
Check with wget https://chat.html5-chat.com:2083/getUsers/1/999 or lynx https://chat.html5-chat.com:2083/getUsers/1/999 whether you get a response. If you do, then it is not a firewall issue.
 
Back
Top