Solved Could not bind to host

Discussion in 'BungeeCord Help' started by MrYumYum, Jun 11, 2021.

  1. Hey,
    I wanted to host a little testserver. Everything worked fine on localhost but I wanted to play with friends.
    I have a no-ip address and all ports are open. And the ports arent in use. With a normal spigot server all works fine. But I have no clue.

    The Error/Console
    Code (Text):
    F:\SERVER\Bungeecord>java -Xmx10G -jar server.jar
    16:47:55 [INFO] Using standard Java JCE cipher.
    16:47:55 [INFO] Using standard Java compressor.
    16:47:55 [INFO] Enabled BungeeCord version git:BungeeCord-Bootstrap:1.17-R0.1-SNAPSHOT:b7935d4:1581
    16:47:55 [INFO] Discovered module: ModuleSpec(name=cmd_alert, file=modules\cmd_alert.jar, provider=JenkinsModuleSource())
    16:47:55 [INFO] Discovered module: ModuleSpec(name=cmd_find, file=modules\cmd_find.jar, provider=JenkinsModuleSource())
    16:47:55 [INFO] Discovered module: ModuleSpec(name=cmd_list, file=modules\cmd_list.jar, provider=JenkinsModuleSource())
    16:47:55 [INFO] Discovered module: ModuleSpec(name=cmd_send, file=modules\cmd_send.jar, provider=JenkinsModuleSource())
    16:47:55 [INFO] Discovered module: ModuleSpec(name=cmd_server, file=modules\cmd_server.jar, provider=JenkinsModuleSource())
    16:47:55 [INFO] Discovered module: ModuleSpec(name=reconnect_yaml, file=modules\reconnect_yaml.jar, provider=JenkinsModuleSource())
    16:47:55 [INFO] Loaded plugin reconnect_yaml version git:reconnect_yaml:1.17-R0.1-SNAPSHOT:b7935d4:1581 by SpigotMC
    16:47:55 [INFO] Loaded plugin cmd_find version git:cmd_find:1.17-R0.1-SNAPSHOT:b7935d4:1581 by SpigotMC
    16:47:55 [INFO] Loaded plugin Lobbysystem version 2.4-SNAPSHOT by ObedMz
    16:47:55 [WARNING] Error loading plugin WorldEdit
    java.lang.NoClassDefFoundError: org/bukkit/command/TabCompleter
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at net.md_5.bungee.api.plugin.PluginClassloader.findClass(PluginClassloader.java:146)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at net.md_5.bungee.api.plugin.PluginClassloader.loadClass0(PluginClassloader.java:66)
        at net.md_5.bungee.api.plugin.PluginClassloader.loadClass(PluginClassloader.java:59)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at net.md_5.bungee.api.plugin.PluginManager.enablePlugin(PluginManager.java:340)
        at net.md_5.bungee.api.plugin.PluginManager.loadPlugins(PluginManager.java:250)
        at net.md_5.bungee.BungeeCord.start(BungeeCord.java:273)
        at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:67)
        at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
    Caused by: java.lang.ClassNotFoundException: org.bukkit.command.TabCompleter
        at net.md_5.bungee.api.plugin.PluginClassloader.loadClass0(PluginClassloader.java:97)
        at net.md_5.bungee.api.plugin.PluginClassloader.loadClass(PluginClassloader.java:59)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 13 more
    16:47:55 [INFO] Loaded plugin cmd_server version git:cmd_server:1.17-R0.1-SNAPSHOT:b7935d4:1581 by SpigotMC
    16:47:55 [INFO] Loaded plugin cmd_alert version git:cmd_alert:1.17-R0.1-SNAPSHOT:b7935d4:1581 by SpigotMC
    16:47:55 [INFO] Loaded plugin cmd_send version git:cmd_send:1.17-R0.1-SNAPSHOT:b7935d4:1581 by SpigotMC
    16:47:55 [INFO] Loaded plugin cmd_list version git:cmd_list:1.17-R0.1-SNAPSHOT:b7935d4:1581 by SpigotMC
    16:47:55 [WARNING] Forced host server pvp is not defined
    16:47:55 [INFO] Enabled plugin reconnect_yaml version git:reconnect_yaml:1.17-R0.1-SNAPSHOT:b7935d4:1581 by SpigotMC
    16:47:55 [INFO] Enabled plugin cmd_find version git:cmd_find:1.17-R0.1-SNAPSHOT:b7935d4:1581 by SpigotMC
    16:47:55 [INFO] [Lobby System] loaded correctly.
    16:47:55 [INFO] [Lobby System] 0 lobbys has been added.
    16:47:55 [INFO] Enabled plugin Lobbysystem version 2.4-SNAPSHOT by ObedMz
    16:47:55 [INFO] Enabled plugin cmd_server version git:cmd_server:1.17-R0.1-SNAPSHOT:b7935d4:1581 by SpigotMC
    16:47:55 [INFO] Enabled plugin cmd_alert version git:cmd_alert:1.17-R0.1-SNAPSHOT:b7935d4:1581 by SpigotMC
    16:47:55 [INFO] Enabled plugin cmd_send version git:cmd_send:1.17-R0.1-SNAPSHOT:b7935d4:1581 by SpigotMC
    16:47:55 [INFO] Enabled plugin cmd_list version git:cmd_list:1.17-R0.1-SNAPSHOT:b7935d4:1581 by SpigotMC
    16:47:56 [WARNING] Could not bind to host XXXX.sytes.net/95.XXX.X.112:25565
    java.net.BindException: Cannot assign requested address: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:134)
        at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:562)
        at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1334)
        at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:506)
        at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:491)
        at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:973)
        at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:260)
        at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:356)
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
        at java.lang.Thread.run(Unknown Source)
    And the Config


    Code (Text):
    server_connect_timeout: 5000
    listeners:
    - query_port: 25577
      motd: '&1Another Bungee server'
      tab_list: GLOBAL_PING
      query_enabled: false
      proxy_protocol: false
      forced_hosts:
        pvp.md-5.net: pvp
      ping_passthrough: false
      priorities:
      - lobby
      bind_local_address: true
      host: XXXXX.sytes.net:25565
      max_players: 1
      tab_size: 60
      force_default_server: false
    remote_ping_cache: -1
    network_compression_threshold: 256
    permissions:
      default:
      - bungeecord.command.server
      - bungeecord.command.list
      admin:
      - bungeecord.command.alert
      - bungeecord.command.end
      - bungeecord.command.ip
      - bungeecord.command.reload
    log_pings: true
    connection_throttle_limit: 3
    prevent_proxy_connections: false
    timeout: 30000
    player_limit: -1
    ip_forward: false
    groups:
      md_5:
      - admin
    remote_ping_timeout: 5000
    connection_throttle: 4000
    log_commands: false
    stats: a6883d12-d2ad-40ee-82cb-238bd4a6db2e
    online_mode: true
    forge_support: false
    disabled_commands:
    - disabledcommandhere
    servers:
      lobby:
        motd: '&1Lobby-Beta'
        address: 0.0.0.0:00001
        restricted: false
      Test1:
        motd: '&Test'
        address: 0.0.0.0:00002
        restricted: false
     
     
  2. Change to
    Code (Text):
    host: 0.0.0.0:25565
    Your other servers must be running on a port other than 25565, and by the way
    10GB of RAM are for bungeecord totally overkill -> 1GB is for little server enough
    Code (Text):
    java -Xmx1G -jar server.jar
     
  3. as well those ports are odd and I am not sure if this will work at all, I recommend using ports such as 25566, 25567 etc.
     
  4. Thank you so much everything works now.