firstly I went to the Minecraft website and downloaded the Minecraft Server file for friends. I dragged the contents into a new folder which I named "Minecraft" and I changed the file inside to Minecraft, there is a line of code which I had to use which I also edit Originally it was
I then made it a .bat and renamed the text document to Run I then ran the server, set the permissions to true and ran the server again, It was up and I logged into minecraft and got into my server via "localhost" I then gave 2 of my friends my "Public" Ip address I Forwarded my ports for my router using TCP and UDP and the later seperately with TCP for one and UDP for the other, opening the ports for 25565 using my ip4 still couldn't connect, I then allowed every java executable I could find through my windows firewall and minecraft too, still nothing, I then set up inbound commands for my ports using TCP and UDP for 25565 in my firewall, still didn't work, I also did it for my out going ports, still nothing, I then reinstalled minecraft and created a static Ip and set up all my ports for the new one just in case. At this point I cannot Understand why my friends get a timed out error when I have the server up.. I am beginning to lose faith so I decided to post here to see if anyone has any suggestions. I also have the latest version of Java installed and I have tried turning off my firewall completely.
It's been a few days, tired using logmeinHamachi ran into a problem where if I pinged my friend I got a reply but they didn't get a reply from me, I tried letting hamachi through my firewall in the inbound rules, it didn't seem to work. I turned off my firewall and from there my friend could see my server and see when I was on it or not, but when tried to join would get an error saying "invalid session" but I've tried restarting but it doesn't change anything.