Initial server cofig

Hi, so I have a virtual machine with mint 22 cinnamon and im trying to host a small server for me and up to 5 people that I know. I am struggling rn on port forwarding part, I've added 25562 to firewall and set up static ip but I still can't seem to connect even on main system (that host virtual machine) sould someone help me please?
30 Replies
Admincraft Meta
Admincraft Meta2mo 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 marchewcia#0
Loudbook
Loudbook2mo ago
Well Minecraft uses 25565 by default Not sure if you changed that
Marchewcia
MarchewciaOP2mo ago
wait yes im using 25565 but I don't know how to first get it to work for me and second to get it shared to others the server is running tho without problems
Snow Kit
Snow Kit2mo ago
What are you using for VMs? Is it on a bridged network adapter?
Marchewcia
MarchewciaOP2mo ago
I think it is, that's vmware player I'll change that rq
Snow Kit
Snow Kit2mo ago
ideally, your VM and your host machine should be on the same subnet (192.168.1.0/24 in my case). You can check the IP address with ipconfig on windows and ip a on linux
No description
No description
Marchewcia
MarchewciaOP2mo ago
now when I've changed to bridged network adapter I don't have connection on vm
Snow Kit
Snow Kit2mo ago
should just be able to configure it in network settings it should get dhcp just like any other device on your network if you're on wifi, you may have issues
Marchewcia
MarchewciaOP2mo ago
no im on ethernet
Snow Kit
Snow Kit2mo ago
have you rebooted since you made the change?
Marchewcia
MarchewciaOP2mo ago
I've set it like that
No description
Marchewcia
MarchewciaOP2mo ago
yes
Snow Kit
Snow Kit2mo ago
and you have the right adapters setup?
Marchewcia
MarchewciaOP2mo ago
I have all three of them checked
Snow Kit
Snow Kit2mo ago
should only need to enable your ethernet adapter
Snow Kit
Snow Kit2mo ago
for example, these two are my actual ethernet adapters
No description
Marchewcia
MarchewciaOP2mo ago
ok so when I set static ip for vm in vm network setting (in linux) then I lose connection, without it I have connection @Snow Kit hi, sorry for pinging but I made it and it works for me. now I have a question: how do I set port routing so others can join? @Snow Kit @Loudbook update: I made it work on lan, but port forwarding does't seem to work. I added regule in router setting and on sebsite my router ip to it but connecting via that made up adress covering my real ip doesn't work sorry for pinging earlier but I've mistook my and my router ip, it's all working now thx! nvm it works for anyone in lan, but not outside getsockout error
Snow Kit
Snow Kit2mo ago
make sure you're using the VM's IP address when port forwarding with your router
Marchewcia
MarchewciaOP2mo ago
yes, turned out to be that my operator is using CGNAT and I don't want to give to cloudflate all my data to do it, do you know any good alternatives?
Snow Kit
Snow Kit2mo ago
there's playit.gg
Marchewcia
MarchewciaOP2mo ago
ah so all that port forwarding was for nothing I see?
Marchewcia
MarchewciaOP2mo ago
thx got it running (this is laptop from diff network)
No description
Marchewcia
MarchewciaOP2mo ago
!solved
Admincraft Meta
Admincraft Meta2mo ago
Closed post!
Your post has been marked as solved!
Requested by marchewcia#0
Marchewcia
MarchewciaOP2mo ago
btw any idea why when I turn the server down the process don't stop? it was like 20 minutes ago and still not stopeed
Marchewcia
MarchewciaOP2mo ago
wait I didn't mean to send full screen
No description
Skullians
Skullians2mo ago
likely something hanging would recommend binary searching your plugins
Marchewcia
MarchewciaOP2mo ago
I have only one mod added server side so prob it lol yep it was it do you know a little about playit? because I want to be able to reconnect to existing agent after computer restart because I don't want to give them each time diff ip
Snow Kit
Snow Kit2mo ago
never used it before. I just know it exists
Marchewcia
MarchewciaOP2mo ago
oh, I see thx just fyi I see command in the internet that made it as autostart works properly and it reconnects thx

Did you find this page helpful?