# Help with minecraft server project

**URL:** <https://forums.balena.io/t/help-with-minecraft-server-project/97128>\
**Category:** Project help\
**Created:** [April 21, 2020, 3:36pm UTC](https://forums.balena.io/t/help-with-minecraft-server-project/97128 "2020-04-21T15:36:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon10](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@simon10](https://forums.balena.io/u/simon10)\
**Post date:** [April 21, 2020, 3:36pm UTC](https://forums.balena.io/t/help-with-minecraft-server-project/97128/1 "2020-04-21T15:36:53Z")

</div>

Hi, I just tried running this project.

> **[How to create a Minecraft Server for the Raspberry Pi 4 with balena](https://www.balena.io/blog/how-to-create-a-minecraft-server-for-the-pi-4-with-balena/)**
>
> Try the balena Minecraft Server, a starter project to quickly and easily create a Minecraft Server and use SCP and RCON to manage it all from a Pi 4!

  
All seems to be running OK…

I just get this error when trying to access it from a mac running Minecraft Java edition.

“io.netty channel.AbstractChannel$AnnotatedConnectException Connection refused”

Pi is plugged into my router  
Firewall is turned off on my laptop

I can’t figure out where the problem is and how to solve it. Any tips would make my daughter very happy. Many Thanks  
Simon

```
		    \
		     \
		      \\
		       \\
		        >\/7
		    _.-(6' \
		   (=___._/` \
		        ) \ |
		       / / |
		      / > /
		     j < _\
		 _.-' : ``.
		 \ r=._\ `.
		<`\\_ \ .`-.
		 \ r-7 `-. ._ ' . `\
		  \`, `-.`7 7) )
		   \/ \| \' / `-._
		              || .'
		               \\ (
		                >\ >
		            ,.-' >.'
		           <.'_.''
		             <'
```

---

<div class="post-metadata">

**Author:** ![ab77](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab77/32/2870_2.png) [@ab77](https://forums.balena.io/u/ab77)\
**Post date:** [April 21, 2020, 4:11pm UTC](https://forums.balena.io/t/help-with-minecraft-server-project/97128/3 "2020-04-21T16:11:35Z")

</div>

Hi there, the first thing to try would be to see (assuming you are using the default hostname `balenaminecraftserver`) if this is resolvable from your client. You can try pinging it to see if it responds. Ideally you should try to do this with both devices on the same network segment (i.e. same Wi-Fi band or Ethernet VLAN).

---

<div class="post-metadata">

**Author:** ![ab77](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab77/32/2870_2.png) [@ab77](https://forums.balena.io/u/ab77)\
**Post date:** [April 21, 2020, 4:13pm UTC](https://forums.balena.io/t/help-with-minecraft-server-project/97128/4 "2020-04-21T16:13:30Z")

</div>

In addition, you could also try to connect via the IP address directly - you can find out what the IP of the device is from the dashboard.

---

<div class="post-metadata">

**Author:** ![simon10](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@simon10](https://forums.balena.io/u/simon10)\
**Post date:** [April 21, 2020, 4:15pm UTC](https://forums.balena.io/t/help-with-minecraft-server-project/97128/5 "2020-04-21T16:15:10Z")

</div>

Hi thanks for the reply. No problem pinging it.

PING balenaminecraftserver.lan (192.168.1.157): 56 data bytes  
64 bytes from 192.168.1.157: icmp\_seq=0 ttl=64 time=13.458 ms  
64 bytes from 192.168.1.157: icmp\_seq=1 ttl=64 time=16.714 ms  
64 bytes from 192.168.1.157: icmp\_seq=2 ttl=64 time=1.088 ms  
64 bytes from 192.168.1.157: icmp\_seq=3 ttl=64 time=122.251 ms

Not sure what to do next. Thanks

---

<div class="post-metadata">

**Author:** ![ab77](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab77/32/2870_2.png) [@ab77](https://forums.balena.io/u/ab77)\
**Post date:** [April 21, 2020, 4:19pm UTC](https://forums.balena.io/t/help-with-minecraft-server-project/97128/6 "2020-04-21T16:19:40Z")

</div>

Can you try to connect via the IP address directly with the MC client? Do you get the same error message? Is there any output in the server/dashboard logs?

You can also try installing a `telnet` client on the mac and then run:

```auto
telnet 192.168.1.157 <port>

```

where `<port>` is either 25565, 25575 or 22 (try all of them to see if you get a socket connection) to see if the server is actually reachable over TCP.

---

<div class="post-metadata">

**Author:** ![simon10](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@simon10](https://forums.balena.io/u/simon10)\
**Post date:** [April 21, 2020, 4:26pm UTC](https://forums.balena.io/t/help-with-minecraft-server-project/97128/7 "2020-04-21T16:26:40Z")

</div>

> [@ab77](#):
>
> simons-MBP-2:~ simon$ telnet 192.168.1.157 22  
> Trying 192.168.1.157…  
> Connected to balenaminecraftserver.lan.  
> Escape character is ‘^]’.

Ah thanks port 22 seems to work. Not sure how to use that to help get onto the server through minecraft though

Thanks

---

<div class="post-metadata">

**Author:** ![ab77](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab77/32/2870_2.png) [@ab77](https://forums.balena.io/u/ab77)\
**Post date:** [April 21, 2020, 4:33pm UTC](https://forums.balena.io/t/help-with-minecraft-server-project/97128/8 "2020-04-21T16:33:25Z")

</div>

If you can’t get to port 25565 and 25575, that means something is blocking communication between your mac and MV servers. You can test this by opening a web terminal connection to the host container on the device and running `curl 192.168.1.157: 25565` as well as curl 192.168.1.157: 25575`. You should get a response if the MC container is running. If so, then you will need to check the network path from your mac to the MC server to see what is blocking these higher numbered ports…

---

<div class="post-metadata">

**Author:** ![simon10](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@simon10](https://forums.balena.io/u/simon10)\
**Post date:** [April 21, 2020, 4:43pm UTC](https://forums.balena.io/t/help-with-minecraft-server-project/97128/9 "2020-04-21T16:43:22Z")

</div>

Port Scanning host: 192.168.1.157

```
 Open TCP Port: 22 ssh
 Open TCP Port: 22222

```

Port Scan has completed…

Thanks all very useful. I have no idea what is blocking the ports but its a good lead.

Cheers

---

<div class="post-metadata">

**Author:** ![simon10](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@simon10](https://forums.balena.io/u/simon10)\
**Post date:** [April 21, 2020, 5:03pm UTC](https://forums.balena.io/t/help-with-minecraft-server-project/97128/11 "2020-04-21T17:03:34Z")

</div>

Only problem is I don’t know where its blocked and how to unblock it. Is the laptop, minecraft software, router or raspberry.

Thanks for the help.

Cheers  
Simon

---

<div class="post-metadata">

**Author:** ![garethtdavies](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/garethtdavies/32/2669_2.png) [@garethtdavies](https://forums.balena.io/u/garethtdavies)\
**Post date:** [April 21, 2020, 9:20pm UTC](https://forums.balena.io/t/help-with-minecraft-server-project/97128/12 "2020-04-21T21:20:33Z")

</div>

Hi are you able to log into balenaCloud and see the device online and see that all the services are running? If so can you try what Anton suggested above and open a web terminal to the host container on the device and running the curl commands to ensure the `mc-server` container is functioning correctly? We should probably rule out that everything is functioning correctly first before trying to debug any network issues. Also, can you confirm the model of Pi you are using, as I note that the instructions say the 1GB variant will not work.

---

<div class="post-metadata">

**Author:** ![simon10](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@simon10](https://forums.balena.io/u/simon10)\
**Post date:** [April 21, 2020, 9:28pm UTC](https://forums.balena.io/t/help-with-minecraft-server-project/97128/14 "2020-04-21T21:28:43Z")

</div>

Hi Gareth thanks for the reply.  
Its a 4GB Pi 4 so should be good.

I am not super familiar with the Balena cloud environment but the only error I can see is this.

21.04.20 22:19:34 (+0100) mc-server Error: Invalid or corrupt jarfile paper.jar

Just tried this too using Terminal MC server  
root@balenaminecraftserver:/# curl 192.168.1.157: 22  
curl: (7) Failed to connect to 192.168.1.157 port 80: Connection refused

But I can see through my mac network utility that its connected but only port 22 and port 2222 are open.

Any ideas welcome

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![simon10](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@simon10](https://forums.balena.io/u/simon10)\
**Post date:** [April 22, 2020, 8:45am UTC](https://forums.balena.io/t/help-with-minecraft-server-project/97128/16 "2020-04-22T08:45:41Z")

</div>

Must have been that java file. Maybe I tried to insall it before it had updated. Just redid the whole thing working now. Thanks 🙂
