Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My host has given me a range of usable IP's for example ( - These did not come pre-bound to the OS, so I manually had to bind them. The only problem I am having is that when I try to bind on an additional IP with the port 25565 running on a completely different IP then try to run a server on 25565 with yet another IP, I get the cannot bind exception saying that there is a server already using that port.

I'm trying to get the port 25565 to bind to two completely different IP's which my host provided me with. These two IP's are run on Java virtual machines, and although they are running on two different IP's on the same port, I still get the Java bind exception saying the port is already in use.

share|improve this question
Your question is difficult to understand/it makes no sense.… – Iain Dec 29 '13 at 9:33

Most likely answer is that the java program is NOT binding to an IP but to the same port number on ALL ip addresses.

share|improve this answer

Server A won't give an error message about a port already being in use if it's only in use on server B. It must already be in use on server A.

Probably you already have a copy of your service running on server A, and it's still listening on that port. To find out, run

sudo netstat -napW | grep :25565
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.