LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 04:46 AM   #1
Andare
LQ Newbie
 
Registered: Oct 2017
Posts: 2

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, 01:54 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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, 02:09 PM   #3
Superspeed500
Member
 
Registered: Oct 2017
Distribution: Fedora, Ubuntu, Rocky Linux, Debian
Posts: 46

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?
 
1 members found this post helpful.
Old 02-08-2018, 12:04 PM   #4
Andare
LQ Newbie
 
Registered: Oct 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Yes that’s right! They have a separate firewall setting. I didn’t notice that before XD
 
Old 05-06-2020, 01:49 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Miner1985 View Post
Hello Andare. I haven't heard of anyone making a Minecarft server on Linux in a long time. I generally think that Linux is the best operating system. I've been using it for a long time, I really like it. I think your idea is a good one and it will be accepted.
How can this be anything but a spammer?
Even the username speaks to it...

But they didn't do anything "wrong"... yet... well, I reported it anyhow.
 
Old 07-27-2020, 06:47 AM   #6
yourfriend007
LQ Newbie
 
Registered: Jul 2020
Posts: 3

Rep: Reputation: Disabled
Most probably it's the firewall on the server that doesn't allow you to log in. My friend is a moderator on this Minecraft server . When they created it they had the same problem, the server would appear active but it won't allow anyone to join it. They have tried different solutions but none worked. They have even hired an IT consultant to help but there was nothing he could do but offer a piece of advice. He suggested to try and host the server on a different physical server and that did the trick. The only downside was that they couldn't get a refund from the initial one and lost some money but it payed off later.

Last edited by yourfriend007; 07-29-2020 at 03:39 AM.
 
Old 08-28-2020, 09:22 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Anita2020 View Post
Hello,

You tried on rented spam server, now please go through with this link:spam
I hope you will solve your problem here.

Thanks,
Anita
Spammer reported.
 
  


Reply



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 05:53 AM
[SOLVED] Launch Minecraft and Minecraft server as non-root user Hasek39 Linux - General 4 01-04-2016 03:06 AM
Minecraft world trickery (and even minecraft on ipad) lhartvik LinuxQuestions.org Member Success Stories 2 05-28-2015 01:32 AM
LXer: GOL MineCraft Weekly. Grab Issue 2 Today, Linux Minecraft server LXer Syndicated Linux News 0 08-04-2013 11:41 AM
[SOLVED] Help me open a port for my Minecraft server Lumify Linux - Newbie 8 07-29-2012 01:52 PM

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

All times are GMT -5. The time now is 03:30 PM.

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
Open Source Consulting | Domain Registration