Basically, I managed to set up my minecraft server. Everything worked, except I noticed it was extremely slow. I looked it up online, and saw that I needed to create a .bat file to increase the ram. So I did this, however, when I'm running the server from this .bat file, all of the server id addresses that worked before no longer work, and the only way I can play on the 2GB ram server is by using "local host".
Everything was working before, and I had played with friends. I have got 64 bit, and when i play with Localhost it runs fantastic. My issue is however, getting my other friends on this 2gb ram server.
Everytime I try with the server ip address (the same address that worked before) it says "io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no further information:"
Localhost is the ONLY way to connect to a server on the same machine. If your friends cannot connect it's an issue with portforwarding and/or firewall.
I thought this might have been the case, however, when I ran the server without the bat file (with only 200M) the server ip worked (I played it with friends). So I dont believe that it's entirely the port forwarding's fault.