Poweruser / MinetickMod

Multithreading and other optimizations for the Craftbukkit Minecraft server (up to version 1.7.10)
GNU General Public License v3.0
29 stars 5 forks source link

Setting up bungeecord? #22

Open Zilacon opened 9 years ago

Zilacon commented 9 years ago

OK so ive done this on 1.7 perfectly fine but for some reason its not working for 1.6

I am doing Bungee -> Minetick -> MCPC+ 1.6.4 I have the bungee setup correctly just as i had it setup on the 1.7 network. But the 1.6.4 MCPC+ server is not connecting to the forced host or the bungee network.

Is there something i need to configure in the spigot.yml other then bungeecord: true?

Zilacon commented 9 years ago

So i cant connect to the bungeecord or the hub server. The hub is set to port 7856 while the bungee server is set to 7800.

Going to mc.apocgaming.org:port for both is blocked but yet it is open on both the router and server.

Another server MCPC+ 1.6.4 is able to be connected to by doing mc.apocgaming.org:7852 just fine. But the forced host for it ashc.apocgaming.org does not work. Basically anything to do with Bungee is not working including Minetick.

Any idea whats going on? Here is my Bungee config:

groups:
  Zilacon:
  - admin
  Sentinel618:
  - admin
disabled_commands:
- find
player_limit: -1
stats: b68ce147-0866-4f4f-8042-fda669cb4114
permissions:
  default:
  - bungeecord.command.server
  - bungeecord.command.list
  admin:
  - bungeecord.command.alert
  - bungeecord.command.end
  - bungeecord.command.ip
  - bungeecord.command.reload
listeners:
- max_players: 1000
  fallback_server: HUB
  host: 0.0.0.0:7800
  bind_local_address: true
  ping_passthrough: false
  tab_list: GLOBAL_PING
  default_server: HUB
  forced_hosts:
    hub1.apocgaming.org: HUB
    ashc.apocgaming.org: ASHC
  tab_size: 60
  force_default_server: false
  motd: '&9A&fpocalyptic &9G&faming &9N&fetwork &b| &a26 Servers, One Network!'
  query_enabled: true
  query_port: 7800
timeout: 30000
connection_throttle: -1
servers:
  HUB:
    address: localhost:7856
    restricted: false
    motd: '&cAPOC TEST HUB 1.6.4'
  ASHC:
    address: localhost:7852
    restricted: false
    motd: '&9A&fpocalyptic &9G&faming &9N&fetwork &cAgrarian Skies 3.1.4'
ip_forward: true
online_mode: true
Poweruser commented 9 years ago

Using 0.0.0.0 as host address doesn't work for me at all with bungeecord for 1.6.4, though this address is supposed to mean: all/any local address. I have to use the LAN address instead, which the router uses in it's forwarding settings. This might have been a bug at that time, which got fixed later on, don't know.

On all minecraft servers you also need to set the connection_throttle setting to -1 in the bukkit.yml. At this version it wasn't done automatically yet. And on the hub server, the bungeecord settings are in the bukkit.yml as well. (should be at the very bottom)

Zilacon commented 9 years ago

When i try binding it to my local IP it gives me this:

07:26:23 [WARNING] Could not bind to host /192.168.1.9:7800
java.net.BindException: Cannot assign requested address
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:463)
    at sun.nio.ch.Net.bind(Net.java:455)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:102)
    at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:478)
    at io.netty.channel.DefaultChannelPipeline$HeadHandler.bind(DefaultChannelPipeline.java:1000)
    at io.netty.channel.DefaultChannelHandlerContext.invokeBind(DefaultChannelHandlerContext.java:456)
    at io.netty.channel.DefaultChannelHandlerContext.bind(DefaultChannelHandlerContext.java:441)
    at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:842)
    at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:193)
    at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:321)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:348)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
    at java.lang.Thread.run(Thread.java:745)
07:26:23 [WARNING] Could not bind to host null
java.net.BindException: Cannot assign requested address
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:463)
    at sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:691)
    at sun.nio.ch.DatagramSocketAdaptor.bind(DatagramSocketAdaptor.java:91)
    at io.netty.channel.socket.nio.NioDatagramChannel.doBind(NioDatagramChannel.java:156)
    at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:478)
    at io.netty.channel.DefaultChannelPipeline$HeadHandler.bind(DefaultChannelPipeline.java:1000)
    at io.netty.channel.DefaultChannelHandlerContext.invokeBind(DefaultChannelHandlerContext.java:456)
    at io.netty.channel.DefaultChannelHandlerContext.bind(DefaultChannelHandlerContext.java:441)
    at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:842)
    at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:193)
    at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:321)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:348)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
    at java.lang.Thread.run(Thread.java:745)
Poweruser commented 9 years ago

This happens, when the specified address does not match the actual lan address.

And I have to laugh now about the following, from my bungee log:

    16:07:14 [INFORMATION] Listening on /0.0.0.0:25565                                 <- IPv4
    16:07:15 [INFORMATION] Closing listener [id: 0x1ea11b89, /0:0:0:0:0:0:0:0:25565]   <- IPv6
Zilacon commented 9 years ago

I got it set to the right local IP now (been working on servers for 36 hours im tired...) But this is my current problem: http://prntscr.com/8ig9ff LOCALLY i can connect to it if i use the local IP but it wont connect through my domain or forced hosts...

Zilacon commented 9 years ago

When i set the IP to my local IP my 1.7.10 bungee network just died... How would that effect another server on a different local ip and different computer?

Now all of the forced hosts for the 1.7 servers dont work now...

Poweruser commented 9 years ago

As you just switched the ip address, did you adjust the router's settings as well? And maybe get some rest first

Zilacon commented 9 years ago

Could you come on teamspeak and help? ts.apocgaming.org