SpigotMC / BungeeCord

BungeeCord, the 6th in a generation of server portal suites. Efficiently proxies and maintains connections and transport between multiple Minecraft servers.
https://www.spigotmc.org/go/bungeecord
Other
1.57k stars 1.11k forks source link

IP Forwarding Error - All servers on one machine #2083

Closed I-Knight-I closed 7 years ago

I-Knight-I commented 7 years ago

So, I've got Bungee and all of my servers on 1 machine with 16GB of RAM.

I've set everything up, I believe, correctly but I get an error when joining saying "If you wish to use IP Forwarding, please enable it in your BungeeCord config as well!"

Is there some other way to setup BungeeCord when running off of one machine? I'm assuming it's different to using multiple. I'd appreciate any help/even a step-by-step guide on settings up Bungee when it's on a single server.

Spigot: spigot-1.8-R0.1-SNAPSHOT-latest

BungeeCord: 1.8-SNAPSHOT:"e1951c5":1050

Config:

`groups: BKnight_:

kamcio96 commented 7 years ago

Probably you're connecting to server without Bungee. Do you have login log in Bungee console?

On one machine it's better to use localhost in server.properties and server's section in config.yml

1bytee commented 7 years ago
  1. Make sure you set bungeecord to true in your spigot.yml
  2. You can update to the latest version of BungeeCord since it supports 1.8 - 1.11 (maybe there was an update that already fixed this problem)

(and you should update your Spigot to 1.8.8 imo)

I-Knight-I commented 7 years ago

@kamcio96 I heard this elsewhere and tried it out but I wasn't sure how to join. I've tried it again now, and what IP do I enter/do clients enter to join the server?

EDIT: Do I change the 'host' section to 'localhost' too? Or do I keep using my private IP address (I cant use public).

@1bytee Bungeecord is set to true and I've updated my BungeeCord. Thanks for the suggestion. I might actually update my spigot too. Cheers for the suggestions!

kamcio96 commented 7 years ago

Clients have to use 172... ip. Are you using docker?

I-Knight-I commented 7 years ago

@kamcio96 The 172 IP is private. I can't use the public IP as it says "Cannot bind to address".

kamcio96 commented 7 years ago

Do you have discord? My account: kamcio96#8278

I-Knight-I commented 7 years ago

I have teamspeak, can you come on there instead? I'm currently talking with another Owner about the server on here:

ts.themultiserver.com

1bytee commented 7 years ago

Localhost should be fine if you're running BungeeCord and Spigot on the same machine... Maybe try to set the bungeecord host to 0.0.0.0 and the address of the hub server to localhost or 127.0.0.1

that might solve your problem

I-Knight-I commented 7 years ago

@1bytee Nope, now it can't even connect to the server when I enter all 3 addresses.

kamcio96 commented 7 years ago

Nvm Your private IP is eg 172.31.1.2. Set it as Bungee host, or set 0.0.0.0 there. Clients have to connect with public IP which is redirected to private.

  1. Now servers, if it's same machine set it to localhost (in server.properties and in bungee's config.yml)

  2. If it's not same machine. Set public IP in bungee's config and private IP in server.properties

1bytee commented 7 years ago

Yea make sure you also set the spigot ip to localhost too... forgot about that

johnfriedrich commented 7 years ago

You may find an answer in our BungeeCord wiki or join our forums for support.

I-Knight-I commented 7 years ago

@kamcio96 @1bytee I've done all of the things you guys have suggested and it still isn't working.

EDIT: No it's working now. But when I connect through the proxy it says "You have to join through the proxy." and kicks me?

kamcio96 commented 7 years ago

any login logs on bungee? are you using ipwhitelist? Try reset IPwhitelist config

I-Knight-I commented 7 years ago

EDIT: I found the problem! It was to do with a plugin called IPWhitelist. My god, I'm so glad this got fixed.

Thanks for all the help.

drakeliemmore commented 6 years ago

hey could u guys help me, im also having this issue

[00:38:30 INFO]: /1xx.1xx.1xx.2xx:53596 lost connection: If you wish to use IP forwarding, please enable it in your BungeeCord config as well!

I turned the settings on spigot.yml, bungeecord: true

Here is my config.yml from Bungeecord folder:

groups: BankOfGenius:

Please help :D