I know the way to do it for many people is to create a .bat file with "java -Xmx(desired maximum ram)M -Xms(desired minimum ram)M -jar forge-1.16.jar nogui" inside, but when I launch my server through a .bat file none of my friends can connect, yet when launching it from a forge server.jar file my friends can connect, but then there's the issues of ram usage and it lags quite a bit especially with a large amount of mods. Any suggestions?