#Java Servicing Issue

9 messages · Page 1 of 1 (latest)

chrome epoch
#

I'm developing a Java plugin and using a website to get the public IP address of the server, because I'm hosting a mini HTTP server to provide resource packs

#

But for some reason, the public IP of the server is different compared to the IP provided of the website. Why?

#

I am using the aws public ip provider

#

I was able to fix it using Bukkit#getIp since that returns the IP from the server.properties

crisp linden
#

because networking in a datacenter is just straight up done differently. The machines have an IP on which they exist on the network. This is used for access and management. Then the servers on them will bind to a different IP so that services like dedicated IP can exist

chrome epoch
#

I see, that makes more sense. Then it should be fine to use the address specified in server.properties correct, because that is the true IP address?

crisp linden
#

yes

#

that's what the docker container that holds your server is bound to and the only one accessible from within the container

chrome epoch
#

Sounds good, thank you!