My issue is quite long, so I organized the topic for clarity.
Preface
I have a desktop running Windows 7 and a laptop running the public release of Windows 10.
I've been trying to get a private server running on my network all day, and I've gotten very far from where I started, but I've hit a roadblock I can't seem to pass.
This all started when I couldn't join a LAN game hosted on my Desktop. My laptop's wifi adapter is broken, so I've been using my phone as a hotspot, however I really hope that isn't the issue here.
What I've done so far
The first step I took was to install the same version of minecraft to both machines. I'm not a fan of what's been going on in 1.8.x, so I got 1.7.10 running cleanly on both.
I want to run the server from my desktop, so I set up the jar server for 1.7.10 to bind to localhost in the server.properties file (server-ip=localhost)
For whatever reason, the server fails to bind to port if I leave it blank or put an ip address in that setting. I think this has a lot to do with my problem.
After getting the server up and running on the Desktop with localhost, I portforwarded 25565 on my router, and verified it with canyouseeme.
Then I made sure my firewall allowed access for minecraft and java on all networks for both machines. I even went as far to install the new program files (x86) version and gave it access too.
Then I changed my network sharing properties to "allow other network users to connect through this computer's internet connection" for both computers, and added minecraft's ports on TCP and UDP in the advanced settings on the Desktop, using the local ip address.
Before going on, let me address the fact that after each and every step, even between machines, I gave the server connection another test run and gave both computers a reboot. The only thing I haven't done that might be helpful is resetting my router, but I'm afraid of losing my portforwarding.
Every time, my laptop would say 'connecting to server' for less than a minute before the casual java.net.exceptsomethingerother error. I'm use to it and figured that something still had to be done.
Finally, I jumped back onto my Desktop's firewall with advanced security and enabled my inbound rules for File and Printer Sharing (Echo Request - ICMPv4-In)
The straw that broke the camel's back
After completing this last step, my laptop finally says "logging in" after connecting to my Desktop's public ip address followed by :25565 (it also says "logging in" without adding :25565)
After less than a minute, the connection Times Out every time.
This seemed like a good sign, as it finally connects with the server.
This is where I'm stumped. I've searched these forums high and low, and even gone roaming the internet for additional support. Most of these fixes were solutions for other peoples' connection issues, and I figured it couldn't hurt to try them. I can't seem to find the final fix to get this server off its ass (excuse the french).
Frustrated Rambling
I hope this isn't an issue with Windows 10, and I also hope it isn't an issue that I'm using my mobile hotspot. That being said, I also hope this doesn't have to do with my server.properties binding to localhost.
Granted if it is a windows 10 issue I can reimage the lappy to windows 7 anytime, it would be a huge hassle, but likely worth it. It's also worth noting that I haven't gotten a hold of anyone else with a laptop to test their connection to my server.
If I can find a trustworthy soul to handle my public ip responsibly, I might give them a shot at joining the server to see if it's just my laptop. However with all of these firewall ports open and my privacy on the line, I'd rather seek an interior solution.
If you made it this far, I congratulate you; my writing is neither brief, nor easy to understand. If all else fails, consult the all powerful tl;dr...
TL;DR
Windows 7 Desktop running server on localhost with firewall doors blown wide open. Windows 10 Laptop using a hotspot with firewall busted down. Port 25565 forwarded on my router verified by canyouseeme.org but connection still times out.
Your Laptop does, or at least should have LAN port too, so broken WiFi adapter is not a big deal, if you use wired network instead, both machines connected to router, local network with no complex setups and not letting windows do tasks that he is not good at, like being a internet gateway, internet connection sharing etc.
Just plug in network cable to your laptop, connect to router, if it is not too late for your operating system, regarding that you have done some nice firewall management there, return it to previous state.
That should work ...
Rollback Post to RevisionRollBack
TAKE CHANCES. TELL THE TRUTH. KISS SLOWLY. DATE SOMEONE TOTALY WRONG FOR YOU.
SAY NO. LOVE DEEPLY. FORGIVE QUICKLY. SPEND ALL YOUR CASH.
GET TO KNOW SOMEONE RANDOM, BE RANDOM. SAY I LOVE YOU. SING OUT LOUD.
FORGET THE PAST. REMMEMBER WHAT IT TOUGHT YOU. LAUGH AT STUPID JOKES.
CRY. APOLOGIZE. TELL SOMEONE HOW MUCH THEY MEAN TO YOU.
TELL A JERK WHAT YOU THINK.LAUGH TILL YOUR STOMACH HURTS.
First, I would expect that using localhost for your server-ip would mean that no client that wasn't on that same machine would be able to connect.
Generally speaking you want to leave this field blank. If that fails to bind to port, then I might expect that there was a firewall or something blocking it. Possibly you might succeed by running as Administrator but this really shouldn't be necessary.
Second, I don't understand how you think using your phone as a hotspot helps. Doesn't this only provide a way for WIFI clients to connect to the internet via your mobile data plan? If you laptop has no WiFi how does this help?
First, I would expect that using localhost for your server-ip would mean that no client that wasn't on that same machine would be able to connect.
Generally speaking you want to leave this field blank. If that fails to bind to port, then I might expect that there was a firewall or something blocking it. Possibly you might succeed by running as Administrator but this really shouldn't be necessary.
Second, I don't understand how you think using your phone as a hotspot helps. Doesn't this only provide a way for WIFI clients to connect to the internet via your mobile data plan? If you laptop has no WiFi how does this help?
I believe the OP is aware that localhost only allows him/her to connect to their server. Also I believe when they say 'hotspot' they are confused and mean they are tethering their phone and using it as a wireless adapter.
OP, can we see your server log file?
I believe the OP is aware that localhost only allows him/her to connect to their server, hence why they are using two different systems on the same network. Also I believe when they say 'hotspot' they are confused and mean they are tethering their phone and using it as a wireless adapter.
Not sure if i can support that idea, considering mentions of Internet connection sharing and such, whole hardware setup explained seems quite ... awkward, to use very soft word ... leading me to belive that whatever he means by "hotspot" will not quite explain all that hardware circus, when one simple ethernet cable solves thing fairly easy and very quick.
Rollback Post to RevisionRollBack
TAKE CHANCES. TELL THE TRUTH. KISS SLOWLY. DATE SOMEONE TOTALY WRONG FOR YOU.
SAY NO. LOVE DEEPLY. FORGIVE QUICKLY. SPEND ALL YOUR CASH.
GET TO KNOW SOMEONE RANDOM, BE RANDOM. SAY I LOVE YOU. SING OUT LOUD.
FORGET THE PAST. REMMEMBER WHAT IT TOUGHT YOU. LAUGH AT STUPID JOKES.
CRY. APOLOGIZE. TELL SOMEONE HOW MUCH THEY MEAN TO YOU.
TELL A JERK WHAT YOU THINK.LAUGH TILL YOUR STOMACH HURTS.
Not sure if i can support that idea, considering mentions of Internet connection sharing and such, whole hardware setup explained seems quite ... awkward, to use very soft word ... leading me to belive that whatever he means by "hotspot" will not quite explain all that hardware circus, when one simple ethernet cable solves thing fairly easy and very quick.
It's not always easy to use an ethernet cable when your router is in another room, and you don't wish to have an ethernet cable trailed around your house.
It's not always easy to use an ethernet cable when your router is in another room, and you don't wish to have an ethernet cable trailed around your house.
I could get along idea using cell phone as WiFi adapter to connect to router, that still doesn't explain all that internet connection sharing mentioned, so i am not quite sure what to think of what is actualy going on there. In my knowledge that is used when you connect 2 computers with ethernet cable, and on one of them you use cell phone to access internet, and on very same you make internet connection sharing, so that other computer have access to internet. However i can't say that will not make things worse, considering that networking management on the host will not mess up ability to be liable MC server.
Given all that i am not sure that we got enough informations to say "He knows what he is doing", as you were sudgesting.
No offence, but if he has already connected both computers to router, all that setup is still awkward, and if he has bot computers conected with ethernet cable, would make that statement, about cable trailing around room, void.
Rollback Post to RevisionRollBack
TAKE CHANCES. TELL THE TRUTH. KISS SLOWLY. DATE SOMEONE TOTALY WRONG FOR YOU.
SAY NO. LOVE DEEPLY. FORGIVE QUICKLY. SPEND ALL YOUR CASH.
GET TO KNOW SOMEONE RANDOM, BE RANDOM. SAY I LOVE YOU. SING OUT LOUD.
FORGET THE PAST. REMMEMBER WHAT IT TOUGHT YOU. LAUGH AT STUPID JOKES.
CRY. APOLOGIZE. TELL SOMEONE HOW MUCH THEY MEAN TO YOU.
TELL A JERK WHAT YOU THINK.LAUGH TILL YOUR STOMACH HURTS.
If one was using the phone as a WiFi adapter and not as a cellular modem, then there would be no reason to use port forwarding because you could connect via the local WiFi.
I believe the OP is aware that localhost only allows him/her to connect
to their server, hence why they are using two different systems on the
same network.
localhost does not allow machines on the same network to connect. Only programs on the same machine can connect to the same localhost. localhost is a loopback address that provides no access external to your computer.
gerbill was right, I went back into my server-ip setting and left it blank, and now my laptop connects using my phone's USB tethering. I think the problem was that last night I had been running the server via my command prompt, which is why it thought another server was running already, causing it to fail to bind to port.
Thank you guys so much for the help, even though it was only one small stupid mistake of leaving my cmd prompt running a server in the background. Silly me.
For the record, let this be proof that with enough trial and error, you can connect to a server using a phone's cellular connection tethered to your computer. That's what I kept calling a mobile hotspot, I wasn't actually using the mobile hotspot, sorry for the confusion.
No offense GusarTranzit, but I couldn't understand half of what you said. Proofreading is a virtue.
EDIT: As my problem is solved, thread is OK for closing.
Preface
I have a desktop running Windows 7 and a laptop running the public release of Windows 10.
I've been trying to get a private server running on my network all day, and I've gotten very far from where I started, but I've hit a roadblock I can't seem to pass.
This all started when I couldn't join a LAN game hosted on my Desktop. My laptop's wifi adapter is broken, so I've been using my phone as a hotspot, however I really hope that isn't the issue here.
What I've done so far
The first step I took was to install the same version of minecraft to both machines. I'm not a fan of what's been going on in 1.8.x, so I got 1.7.10 running cleanly on both.
I want to run the server from my desktop, so I set up the jar server for 1.7.10 to bind to localhost in the server.properties file (server-ip=localhost)
For whatever reason, the server fails to bind to port if I leave it blank or put an ip address in that setting. I think this has a lot to do with my problem.
After getting the server up and running on the Desktop with localhost, I portforwarded 25565 on my router, and verified it with canyouseeme.
Then I made sure my firewall allowed access for minecraft and java on all networks for both machines. I even went as far to install the new program files (x86) version and gave it access too.
Then I changed my network sharing properties to "allow other network users to connect through this computer's internet connection" for both computers, and added minecraft's ports on TCP and UDP in the advanced settings on the Desktop, using the local ip address.
Finally, I jumped back onto my Desktop's firewall with advanced security and enabled my inbound rules for File and Printer Sharing (Echo Request - ICMPv4-In)
The straw that broke the camel's back
After completing this last step, my laptop finally says "logging in" after connecting to my Desktop's public ip address followed by :25565 (it also says "logging in" without adding :25565)
After less than a minute, the connection Times Out every time.
This seemed like a good sign, as it finally connects with the server.
This is where I'm stumped. I've searched these forums high and low, and even gone roaming the internet for additional support. Most of these fixes were solutions for other peoples' connection issues, and I figured it couldn't hurt to try them. I can't seem to find the final fix to get this server off its ass (excuse the french).
Frustrated Rambling
I hope this isn't an issue with Windows 10, and I also hope it isn't an issue that I'm using my mobile hotspot. That being said, I also hope this doesn't have to do with my server.properties binding to localhost.
Granted if it is a windows 10 issue I can reimage the lappy to windows 7 anytime, it would be a huge hassle, but likely worth it. It's also worth noting that I haven't gotten a hold of anyone else with a laptop to test their connection to my server.
If I can find a trustworthy soul to handle my public ip responsibly, I might give them a shot at joining the server to see if it's just my laptop. However with all of these firewall ports open and my privacy on the line, I'd rather seek an interior solution.
If you made it this far, I congratulate you; my writing is neither brief, nor easy to understand. If all else fails, consult the all powerful tl;dr...
TL;DR
Windows 7 Desktop running server on localhost with firewall doors blown wide open. Windows 10 Laptop using a hotspot with firewall busted down. Port 25565 forwarded on my router verified by canyouseeme.org but connection still times out.
Your Laptop does, or at least should have LAN port too, so broken WiFi adapter is not a big deal, if you use wired network instead, both machines connected to router, local network with no complex setups and not letting windows do tasks that he is not good at, like being a internet gateway, internet connection sharing etc.
Just plug in network cable to your laptop, connect to router, if it is not too late for your operating system, regarding that you have done some nice firewall management there, return it to previous state.
That should work ...
First, I would expect that using localhost for your server-ip would mean that no client that wasn't on that same machine would be able to connect.
Generally speaking you want to leave this field blank. If that fails to bind to port, then I might expect that there was a firewall or something blocking it. Possibly you might succeed by running as Administrator but this really shouldn't be necessary.
Second, I don't understand how you think using your phone as a hotspot helps. Doesn't this only provide a way for WIFI clients to connect to the internet via your mobile data plan? If you laptop has no WiFi how does this help?
OP, can we see your server log file?
Not sure if i can support that idea, considering mentions of Internet connection sharing and such, whole hardware setup explained seems quite ... awkward, to use very soft word ... leading me to belive that whatever he means by "hotspot" will not quite explain all that hardware circus, when one simple ethernet cable solves thing fairly easy and very quick.
It's not always easy to use an ethernet cable when your router is in another room, and you don't wish to have an ethernet cable trailed around your house.
I could get along idea using cell phone as WiFi adapter to connect to router, that still doesn't explain all that internet connection sharing mentioned, so i am not quite sure what to think of what is actualy going on there. In my knowledge that is used when you connect 2 computers with ethernet cable, and on one of them you use cell phone to access internet, and on very same you make internet connection sharing, so that other computer have access to internet. However i can't say that will not make things worse, considering that networking management on the host will not mess up ability to be liable MC server.
Given all that i am not sure that we got enough informations to say "He knows what he is doing", as you were sudgesting.
No offence, but if he has already connected both computers to router, all that setup is still awkward, and if he has bot computers conected with ethernet cable, would make that statement, about cable trailing around room, void.
If one was using the phone as a WiFi adapter and not as a cellular modem, then there would be no reason to use port forwarding because you could connect via the local WiFi.
localhost does not allow machines on the same network to connect. Only programs on the same machine can connect to the same localhost. localhost is a loopback address that provides no access external to your computer.
gerbill was right, I went back into my server-ip setting and left it blank, and now my laptop connects using my phone's USB tethering. I think the problem was that last night I had been running the server via my command prompt, which is why it thought another server was running already, causing it to fail to bind to port.
Thank you guys so much for the help, even though it was only one small stupid mistake of leaving my cmd prompt running a server in the background. Silly me.
For the record, let this be proof that with enough trial and error, you can connect to a server using a phone's cellular connection tethered to your computer. That's what I kept calling a mobile hotspot, I wasn't actually using the mobile hotspot, sorry for the confusion.
No offense GusarTranzit, but I couldn't understand half of what you said. Proofreading is a virtue.
EDIT: As my problem is solved, thread is OK for closing.