Unable to Connect to server

So i tried to host a modded server and when i press connect it says joining game and after a little while it says Timed out i can run a vanilla server with no problem.

I dont know if this is important but i host MineOS on a VM