LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 10-07-2017, 05:46 AM   #1
Andare
LQ Newbie
 
Registered: Oct 2017
Posts: 1

Rep: Reputation: Disabled
how to open a port for my Minecraft server?


Hello my friends.
I'm trying to open a Minecraft server on my rented Linux server. Every thing is almost set.


Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-96-generic i686)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage

Welcome to Alibaba Cloud Elastic Compute Service !

Last login: Sat Oct 7 17:16:10 2017 from 122.137.250.6
server@Minecraft:~$ screen -ls
There is a screen on:
8797.RunServer (10/07/2017 05:18:50 PM) (Detached)
1 Socket in /var/run/screen/S-server.
server@Minecraft:~$ screen -r RunServer

>>OpenJDK Server VM warning: You have loaded library /tmp/libnetty-transport-native-epoll6350959555320367288.so which might have disabled stack guard. The VM will try to fix the stack guard now.
>It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
>[17:19:22 INFO]: Using default channel type
>[17:19:23 INFO]: This server is running CraftBukkit version git-Bukkit-9a1fc1e (MC: 1.12) (Implementing API version 1.12-R0.1-SNAPSHOT)
[17:42:14 INFO]: Unknown command. Type "help" for help.
[17:42:14 INFO]: Unknown command. Type "help" for help.
[17:42:14 INFO]: Unknown command. Type "help" for help.
[17:42:14 INFO]: Unknown command. Type "help" for help.
>>[17:19:23 INFO]: Preparing level "world"
>[17:19:24 INFO]: Preparing start region for level 0 (Seed: -7643441361641205921)
>[17:19:25 INFO]: Preparing spawn area: 1%
>[17:19:26 INFO]: Preparing spawn area: 31%
>[17:19:27 INFO]: Preparing spawn area: 96%
>[17:19:27 INFO]: Preparing start region for level 1 (Seed: -7643441361641205921)
>[17:19:28 INFO]: Preparing spawn area: 65%
>[17:19:28 INFO]: Preparing start region for level 2 (Seed: -7643441361641205921)
>[17:19:28 INFO]: Server permissions file permissions.yml is empty, ignoring it
>[17:19:29 INFO]: Done (5.835s)! For help, type "help" or "?"


However, when I use my own computer and try to log in my server, my server didn't response. Is there a firewall blocking it?
I tried sudo iptables -A INPUT -p tcp --dport 25565 -j ACCEPT
It didn't work too.
Guys plz help
 
Old 10-09-2017, 02:54 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 6,979
Blog Entries: 4

Rep: Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681
how do you try to log into your minecraft server?

also keep in mind, firewalls can be both on your client machine, your router, and on the server.

can you access the server on localhost? meaning, on the server itself?

you haven't shown us any firewall settings so far.
 
Old 10-20-2017, 03:09 PM   #3
Superspeed500
LQ Newbie
 
Registered: Oct 2017
Distribution: Fedora, Ubuntu
Posts: 15

Rep: Reputation: Disabled
What firewall software do you use on your server? The default firewall in Ubuntu is Uncomplicated firewall. Also can you ping your server from your own computer?

You can check if UFW is running by typing (with root privileges):
Code:
ufw status
You can open port 25565 in ufw by typing (with root privileges):
Code:
ufw allow 25565
That will allow communication on port 25565 on all interfaces. You can get more syntax information by looking into the man page for UFW.

It also looks that your server is hosted by alibabacloud.com. They seems to have a seperate firewall configuration as outlined in this document. Maybe look into that?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Minecraft NFC -- How one man took Minecraft to the next level LXer Syndicated Linux News 0 02-21-2016 06:53 AM
[SOLVED] Launch Minecraft and Minecraft server as non-root user Hasek39 Linux - General 4 01-04-2016 04:06 AM
Minecraft world trickery (and even minecraft on ipad) lhartvik LinuxQuestions.org Member Success Stories 2 05-28-2015 02:32 AM
LXer: GOL MineCraft Weekly. Grab Issue 2 Today, Linux Minecraft server LXer Syndicated Linux News 0 08-04-2013 12:41 PM
[SOLVED] Help me open a port for my Minecraft server Lumify Linux - Newbie 8 07-29-2012 02:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration