2 server hosting on same IP

I currently host a vanilla server with 1 friend, set it up myself. With another friend, I want to get into Create mod, so I want to host a server that we can play on. What's the best method to do this? I'm not sure if I'd even have to have both servers running at the same time. I heard some stuff about Docker, but I have no frigging clue on what to do. I'm very new to networking, port forwarding and modding minecraft. All I've done is make a server following this link https://www.minecraft.net/en-us/download/server
13 Replies
Admincraft Meta
Admincraft Meta7mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by look.themoon#0
Zaid
Zaid7mo ago
Just a different port? Change port of 2nd server
Cerial
Cerial7mo ago
change the port of the 2nd server to 25566 for example if you use ip 1.234.56.78 to connect then you would need to connect to 1.234.56.78:25566 instead
Cerial
Cerial7mo ago
why not just use velocity (https://papermc.io/software/velocity)
PaperMC
Velocity
Velocity is the modern, high-performance Minecraft server proxy. Designed with performance and stability in mind, it’s a full alternative to Waterfall with its own plugin ecosystem.
evil tomat
evil tomatOP7mo ago
ah forgot to update! i did that in my router settings! it works as i want! would i still be able to host both servers at the same time, though? i dunno. what's the benefit of velocity?
Cerial
Cerial7mo ago
well you will be able to open both servers and since its a proxy you dont have to disconnect and keep switching to the other server you can run /server (other server)
evil tomat
evil tomatOP7mo ago
ah so if i understand correctly, as my setup is right now, i can't run both servers at the same time. velocity would allow that. correct?
Cerial
Cerial7mo ago
for example if you have 2 servers named first and second and you're on the first server and you want to switch to the other server, you can use /server second let me explain myself clearer. theoretically, yes you can run both servers at the same time, but you just need to switch the port of one of them, for example if the first server's port is 25565 (default), the other server has to be 25566. if you want to switch to the other server without velocity, you just disconnect, and use the same ip, but instead of not providing a port, you need to provide 25566 as the port, for example if you're hosting the server on your pc, you would do localhost:25566 instead of just localhost. in the other hand, with velocity, you don't need to disconnect from the first server to switch to the other, you can run /server and you are easily there. you still need to keep both servers online, and plus get another server for velocity up (it doesn't consume a lot of ram, just give it 512mb and you should be good) if you have any questions lmk
evil tomat
evil tomatOP7mo ago
oh i see. velocity would feel more like having 2 worlds on the same server, in contrast to my current setup (i use localhost:25565 and localhost:25566), where it's going to be just 2 different servers thank you @Cerial :3 quick response and very helpful
Cerial
Cerial7mo ago
you're very welcome, glad i could help you
evil tomat
evil tomatOP7mo ago
i think we can close this now then
Cerial
Cerial7mo ago
if you need any help setting up velocity you can refer to their documentation here: https://docs.papermc.io/velocity/getting-started
Getting Started | PaperMC Docs
This page covers how to install and set up a minimal configuration of Velocity.
Cerial
Cerial7mo ago
and yes close this if you want

Did you find this page helpful?