How do I host a modded server and vanilla on the same Oracle Cloud VM at the same time?

I'm trying to host a 24/7 modded server as well as my current 24/7 vanilla server using the Oracle Ampere thing. I have 2 CPU with 18 gb memory so It should be more than capable of doing so. Could anyone help me out?
10 Replies
ProGamingDk
ProGamingDk2y ago
why did u not take the full 4 vcores and 24 gb u get? just run 2 screens or 2 tmux's
isaac
isaacOP2y ago
what about IP tho cause how does it differentiate between the 2 @ProGamingDK
ProGamingDk
ProGamingDk2y ago
port change it in server.properties
isaac
isaacOP2y ago
oh but when i join my vanilla one i dont even put a port or is it cause default is like 25565 or wtver
ProGamingDk
ProGamingDk2y ago
default is 25565 yes if you host a server on that you dont need port but only 1 server can be hosted on port 25565
isaac
isaacOP2y ago
okay! @ProGamingDK idk what im doing wrong i created a new folder called ModdedMinecraft and I did the forge installer stuff and changed the port in server properties to 25575 and I dragged all the mods on client side into the server mods folder do I need to re portforward?
ProGamingDk
ProGamingDk2y ago
well yeah u need to portforward 25575
isaac
isaacOP2y ago
Port Forwarding for server sudo iptables -I INPUT -p tcp -m tcp --dport 25565 -j ACCEPT sudo iptables -I INPUT -p udp -m udp --dport 25565 -j ACCEPT sudo iptables -I OUTPUT -p tcp -m tcp --dport 25565 -j ACCEPT sudo iptables -I OUTPUT -p udp -m udp --dport 25565 -j ACCEPT sudo netfilter-persistent save sudo netfilter-persistent reload sudo iptables -F is it with these things but replace with 25575
ProGamingDk
ProGamingDk2y ago
u also need to do it on the ocp cloud firewall
isaac
isaacOP2y ago
K i did both and i still cant join

Did you find this page helpful?