Can't ping Minecraft Server Virtual Linux Ubuntu Server on Hyper V → Windows Server 2019

Pu
- in Servers
22

I set up a virtual Linux server via Hyper V on my Windows server and installed a Minecraft Bungeecord server there.

The bungeecord server is shown to me at MC when I ping it… But the sub-server does not and the console (when pinging once) always produces the same error code (and it does not end):

13:28:09] [Netty Epoll Server IO # 0 / WARN]: An exceptionCaught () event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
java.lang.RuntimeException: Unable to access address of buffer
at io.netty.channel.epoll.Native.read (Native Method) ~ [spigot1.8.8.jar: git-Spigot-db6de12-18fbb24]
at io.netty.channel.epoll.EpollSocketChannel $ EpollSocketUnsafe.doReadBytes (EpollSocketChannel.java:678) [spigot1.8.8.jar: git-Spigot-db6de12-18fbb24]
at io.netty.channel.epoll.EpollSocketChannel $ EpollSocketUnsafe.epollInReady (EpollSocketChannel.java:714) [spigot1.8.8.jar: git-Spigot-db6de12-18fbb24]
at io.netty.channel.epoll.EpollSocketChannel $ EpollSocketUnsafe $ 3.run (EpollSocketChannel.java:755) [spigot1.8.8.jar: git-Spigot-db6de12-18fbb24]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks (SingleThreadEventExecutor.java:380) [spigot1.8.8.jar: git-Spigot-db6de12-18fbb24]
at io.netty.channel.epoll.EpollEventLoop.run (EpollEventLoop.java:268) [spigot1.8.8.jar: git-Spigot-db6de12-18fbb24]
at io.netty.util.concurrent.SingleThreadEventExecutor $ 2.run (SingleThreadEventExecutor.java:116) [spigot1.8.8.jar: git-Spigot-db6de12-18fbb24]
at java.base / java.lang.Thread.run (Thread.java:834) [?:?]

And when trying to connect via Bungeecord this error message comes up in Minecraft:

Exception Connecting: NativeIoException: readAddress (.) Failed: Connection reset by peer

and in the console of the sub-server the mentioned error code (see above, first script).

Everything is configured correctly. I even tested it locally and via the Windows Server system, then it works.

With the bungee record everything is displayed correctly when pinged (MOTD, number of players, etc.), with the direct connection he does not find the server at all and shows as soon as he tries to ping the server the repetitive error code in the console.

Funny thing is that it shows bungeecord when you connect, but the forwarding and the direct connection do not work.

Knows who the problem is and how to fix it.

Ax

Do you have ProtocolLib installed? Which Java version do you use? Can you send your server.properties in here?

Pu

No I didn't install ProtocolLib…

My Java version:

openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment (build 11.0.6 + 10-post-Ubuntu-1ubuntu119.10.1)
OpenJDK 64-Bit Server VM (build 11.0.6 + 10-post-Ubuntu-1ubuntu119.10.1, mixed mode, sharing)

server.properties:

allow-nether = false
gamemode = 0
enable-command-block = false
server-port = 25575
enable-rcon = false
server-name = lobby-1
enable-query = false
op-permission-level = 4
generator settings = 0; 0; 0
resource-pack =
player-idle-timeout = 0
level-name = lobby
motd = test lobby
announce-player-achievements = true
force-gamemode = false
debug = false
hardcore = false
white-list = false
broadcast-console-to-ops = true
pvp = true
spawn-npcs = true
spawn-animals = true
generate-structures = true
snooper-enabled = true
difficulty = 1
network-compression-threshold = 256
level-type = FLAT
max-tick-time = 60000
spawn-monsters = true
max players = 150
use-native-transport = true
spawn-protection = 0
online-mode = false
allow-flight = false
resource-pack-hash =
max-world-size = 29999984

Ax

Do it: motd = "Test Lobby"

If that doesn't help:

enable-query = false

And add: query.port = 25575

Can you please send your bungeecord config here?

Pu

Okay I'll try that first…

Here is the bungeecord config:

listeners:
- query_port: 25565
motd: 'Test BungeeCord'
tab_list: GLOBAL_PING
query_enabled: false
proxy_protocol: false
forced_hosts:
pvp.md-5.net: pvp
ping_passthrough: false
priorities:
- lobby1
bind_local_address: true
host: 0.0.0.0:25565
max_players: 600
tab_size: 60
force_default_server: true
remote_ping_cache: -1
network_compression_threshold: 256
permissions:
default:
- lobbyleave.use
owner:
- bungeecord.command.server
- bungeecord.command.list
- bungeecord.command.alert
- bungeecord.command.end
- bungeecord.command.ip
- bungeecord.command.reload
- bungee system. *
log_pings: true
connection_throttle_limit: 3
server_connect_timeout: 5000
timeout: 30000
stats: c3c638c7-9ffb-400b-9580-ef5da638c461
player_limit: 600
ip_forward: false
groups:
Notnagel247:
- owner
remote_ping_timeout: 5000
connection_throttle: 4000
log_commands: false
prevent_proxy_connections: true
online_mode: true
forge_support: false
disabled_commands:
- disabled command
servers:
Lobby1:
motd: 'Test Lobby'
address: localhost: 25577
restricted: false

Pu

I have more under server, so I shortened the config and accidentally now here is the port 25577 in the address… In the unabridged version, that's correct.

Ax

If you try this with query, you would of course also have to set it to true in the Bungeecord config. I would also use local IP instead of localhost. You can often use 0.0.0.0 for the sub-servers.

Pu

Unfortunately it doesn't work… But thanks anyway.

I have no problem with the forwarding of BungeeCord to the sub-server, it is more about that if I ping the sub-server or a MC server in general or connect to it, regardless of whether it is forwarded via BungeeCord or via direct connection, this error message is generated and I'm not able to contact me can connect. But that's only on the virtual server (Hyper V) on my Windows server. It works on my computer or the server itself but not on the virtual Linux server that I set up with Hyper V.

I suspect that something is blocking the connection, but I don't know what and how to fix it. But maybe. But is it also technical.

Ax

Because of the firewall, I recommended that with the local IP. Is something like ufw installed?

Pu

Yes is. Habs checked… UFW is apparently pre-installed.

Ax

Here is my working bungee cord config: https://hastebin.com/...a.makefile

Here is my lobby config:

https://hastebin.com/...jihut.bash

Ax

Do ufw disable and try if everything works. If so then do ufw enable and

ufw allow from localhost to any port 25565 proto tcp

For all your Minecraft ports.

Pu

OK. Thank you.

I think I'll definitely have to fall back on that, but the problem is probably more with UFW…

Ax

Did it work out?

Pu

So this is weird, the one with a firewall works a 1.15 server… But my 1.8.8 Spigot server doesn't. Same problem. Bungeecord works too.

Ax

Well then try 1.8.9 do you have different configs?

Pu

Unfortunately 1.8.8 is the newest version of Spigot, the 1.8

Ax

Give PaperMC a try it is actually better in terms of security anyway. You can also use newer Minecraft versions and then work with ViaVersion.

https://papermc.io/legacy

Ax

Oh one thing comes to mind did you set bungeecord to true in the spigot.yml?

Pu

Okay, then thanks for the help, I think I can do it alone.

The Bungeecord network here by me is older and has been on new (Linux) servers several times.

Pu

Yes bungeecord is true…

Ax

You're welcome. If you need help with something at some point, please feel free to contact me.

Discord: Marlon # 9075

Pu

OK