Jump to content
  • 0
Jacktuloco

help me Port 6900 dont open In Centos 7

Question

Hi I have a problem when opening the ports in google cloud vps in centos 7 the other ports open normal but port 6900 does not open, I would like to know any suggestions to open this port? ps: ports 5121 and 6121 are already in the firewall open normally but 6900 does not open

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0
firewall-cmd --zone=public --permanent --add-port=6900/tcp
firewall-cmd --zone=public --permanent --add-port=6121/tcp
firewall-cmd --zone=public --permanent --add-port=5121/tcp
firewall-cmd --reload

try maybe firewall is preventing it.

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)
On 6/2/2021 at 7:48 PM, astralprojection said:

firewall-cmd --zone=public --permanent --add-port=6900/tcp firewall-cmd --zone=public --permanent --add-port=6121/tcp firewall-cmd --zone=public --permanent --add-port=5121/tcp firewall-cmd --reload

firewall-cmd --zone=public --permanent --add-port=6900/tcp
firewall-cmd --zone=public --permanent --add-port=6121/tcp
firewall-cmd --zone=public --permanent --add-port=5121/tcp
firewall-cmd --reload

try maybe firewall is preventing it.

Sir in the console it tells me that it is open but when I try to log the server it keeps saying that it is closed as in the port checker: C

 

PD : [Status]: Connecting to MY IP:6900
[Error]: make_connection: connect failed (socket #6, error 111: Connection refused

Edited by Jacktuloco

Share this post


Link to post
Share on other sites
  • 0
8 hours ago, Jacktuloco said:

PD : [Status]: Connecting to MY IP:6900
[Error]: make_connection: connect failed (socket #6, error 111: Connection refused

this happens when you try to login? or start the server?

 

 

Share this post


Link to post
Share on other sites
  • 0

it must be the database credentials try 
 

mysql -u root
CREATE USER 's1'@'localhost' IDENTIFIED BY 'p1';
GRANT ALL ON `your_game_database`.* TO 's1'@'localhost';
GRANT ALL ON `your_log_database`.* TO 's1'@'localhost';
FLUSH PRIVILEGES;

 

Share this post


Link to post
Share on other sites
  • 0
On 6/4/2021 at 8:18 AM, astralprojection said:

it must be the database credentials try 
 

mysql -u root CREATE USER 's1'@'localhost' IDENTIFIED BY 'p1'; GRANT ALL ON `your_game_database`.* TO 's1'@'localhost'; GRANT ALL ON `your_log_database`.* TO 's1'@'localhost'; FLUSH PRIVILEGES;

mysql -u root
CREATE USER 's1'@'localhost' IDENTIFIED BY 'p1';
GRANT ALL ON `your_game_database`.* TO 's1'@'localhost';
GRANT ALL ON `your_log_database`.* TO 's1'@'localhost';
FLUSH PRIVILEGES;

 

well everything is working it is only the problem of port 6900 that you do not want to open hahah: c

Share this post


Link to post
Share on other sites
  • 0
On 6/2/2021 at 8:36 PM, Jacktuloco said:

Hi I have a problem when opening the ports in google cloud vps in centos 7 the other ports open normal but port 6900 does not open, I would like to know any suggestions to open this port? ps: ports 5121 and 6121 are already in the firewall open normally but 6900 does not open

You should allow first using Iptables port 6900

# iptables -I INPUT 1 -p tcp --dport 6900 -j ACCEPT

# iptables -A INPUT -s 192.168.0.1 -p tcp --dport 6900 -i eth0 -j ACCEPT  ------ change the IP hostname

# iptables-save

After that allow firewall cmd command

firewall-cmd --zone=public --permanent --add-port=6900/tcp

firewall-cmd --zone=public --permanent --add-port=6121/tcp

firewall-cmd --zone=public --permanent --add-port=5121/tcp

firewall-cmd --reload

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.