So here is the exact situation that I have

  • I have 2 game servers in my house. One on port 25565, and the second on 25567. I have only one IP in my house
  • I need to get a "virtual IP" for the second server. Some way of giving the computer that runs these game servers a second IP (linux)
  • I need the Virtual IP to receive connections on 25565 and forward the data to 25567. Although if linux recognizes the second IP in networking I assume I can bind to the second IP on port 25565
  • So the game client is hardcoded to use a single port to contact the server? That's unfortunate. You won't be able to do this unless you have 2 or more public IPs. If you do, it's a simple matter of NAT. – Alan Shutko Oct 20 '12 at 22:12

I assume that what you actually want is to access the two minecraft servers from outside your home?

As you probably know, you can set any port you like for a minecraft server simply by changing the config so that isn't a problem.

In fact, I can't see any problem here at all? You do need to make sure that your Internet router allows inbound traffic on both ports and to tell people that you want to allow to connect what port to use. But that's it, you don't in fact need two IP addresses.

When users wish to connect to your servers, they select Multiplayer, Add Server (or Direct Connect). Then in the URL box, they enter the IP Address with a port like so:


Which will connect to the second Minecraft server assuming that the port is configured for inbound traffic both on the router AND on the Linux box (if you cannot access the server internally, temporarily disable the IPTABLES firewall on the Linux box).

  • I understand this, I want to remove the port number from the equation because it looks tacky and unprofessional. – macintosh264 Oct 21 '12 at 4:20
  • Ah, you mean it looks like Minecraft! ;) – Julian Knight Oct 22 '12 at 16:01

I figured it out!

I purchased a VPS

Then installed this package named "Simpleproxy"

Then ran the following command

simpleproxy -L 25565 -R mc.xyzcraft.net:25567

It proxies the TCP Connection on port 25565 to another address "mc.xyzcraft.net:25567"

  • Interesting and useful solution. I presume you checked the terms of service to make sure they were happy with you running an proxy? Many VPS providers explicitly deny proxies. – Julian Knight Oct 22 '12 at 16:03
  • Just Ran into that problem. I'm purchasing a higher level VPS from them as of now. – macintosh264 Oct 26 '12 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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