We've been having this issue recently when trying to set up LAN games that the port numbers produced when opening the single player to LAN are 4 digits instead of 5 and are impossible to connect to. I was wondering if anyone had any idea what the problem is, and had any ideas about a possible solution.
Well then something must be off, I've never been able to get a lan game working without ports. Plus the 4 digits issue is consistent regardless of what programs are running at the time.
The most infuriating things is not knowing what's causing the problem.
You either click on the LAN game, which 'just works' because the open to LAN server has 'cast an announcement with all the details and you received it.
Or
You do a Direct Connect, in which case you need to enter all the correct information manually. A.B.C.D:P
If you have to do a Direct Connect you are already experiencing firewall / connectivity issues.
OK, I'm not entirely sure what you're asking for, using the forums like this is relatively new to me, but I'll give it my best.
I'm running 64 bit Windows 7 with Java version 8 update 73 as is the other user.
We're starting the game up as normal, the other user (for the sake of anonymity) boots up their single player world and opens it to LAN as usual, producing the 4 digit code as opposed to the usual 5 digit code. I then attempt to login to the world over LAN using direct connect because, as previously established, the world doesn't show up in the nice little list. I then instantly receive a failure to connect message.
OK, I'm not entirely sure what you're asking for, using the forums like this is relatively new to me, but I'll give it my best.
I'm running 64 bit Windows 7 with Java version 8 update 73 as is the other user.
We're starting the game up as normal, the other user (for the sake of anonymity) boots up their single player world and opens it to LAN as usual, producing the 4 digit code as opposed to the usual 5 digit code. I then attempt to login to the world over LAN using direct connect because, as previously established, the world doesn't show up in the nice little list. I then instantly receive a failure to connect message.
Hope this helps explain it a little more
A 5 digit port is not "usual", it is just randomly picked out of 1024-65535. A 4 digit port is just less likely to be had because there is only ~9000 vs ~55,000 5 digit ports. So get this out of your head that 4 digits means something. It doesn't.
When you say you direct connect, what IP address are you typing in? You should be typing in his computer's local IP address. IE 192.168.x.x
Rollback Post to RevisionRollBack
Cast aside your festive doylaks: dragon stuff is about to happen.
Multiplayer is lonely once you understand how it actually works.
That is correct. Utilising IPconfig I have found the appropriate IP address on the local 'home' network I am attempting to use. (192.168.1.64). I keep bringing up the 4 digits thing because, every time before this, the numbers were usually somewhere between the late 48,000 and the early 50,000, but if you say it doesn't matter then I'll follow your lead on that.
That is correct. Utilising IPconfig I have found the appropriate IP address on the local 'home' network I am attempting to use. (192.168.1.64). I keep bringing up the 4 digits thing because, every time before this, the numbers were usually somewhere between the late 48,000 and the early 50,000, but if you say it doesn't matter then I'll follow your lead on that.
Likely because the game is programmed to select further out ports so there is less chance of a conflict.
The next course of action is to make sure the firewall on the host computer is not blocking both java and the port. As a test, try disabling the firewall and see if you can connect.
Rollback Post to RevisionRollBack
Cast aside your festive doylaks: dragon stuff is about to happen.
Multiplayer is lonely once you understand how it actually works.
My goodness. Forgive me for being so simple as to not come to this solution sooner, though I was certain I had tried this before, but nevertheless credit where it is due.
Your solution has worked and I am very thankful. *Bows*
Although entirely disabling the firewall seems a tad excessive, the results were more than I could have hoped, for the first time the world showed up in the list, I did not even need to type in the IP.
But 'modern' firewalls try to be 'easy to use' which means that they don't pop up and ask you whether to allow or disallow things. They just make assumptions. It's very annoying to try to make a firewall behave the way you want it to.
Note that being connected to a "Home" network causes your firewall to be more permissive than when connected to "Public" networks.
We've been having this issue recently when trying to set up LAN games that the port numbers produced when opening the single player to LAN are 4 digits instead of 5 and are impossible to connect to. I was wondering if anyone had any idea what the problem is, and had any ideas about a possible solution.
legal TCP port numbers are anywhere from 1 to 65535. There's nothing magic about 5 digit port numbers.
What ports are available to use might depend upon what other software you are running and how many ports they are using.
OK, so any ideas why a connection can't be made?
You shouldn't need to type in a port for LAN worlds. You only need the host computer's IP address.
Cast aside your festive doylaks: dragon stuff is about to happen.
Multiplayer is lonely once you understand how it actually works.
Alpha 1.0.4
Well then something must be off, I've never been able to get a lan game working without ports. Plus the 4 digits issue is consistent regardless of what programs are running at the time.
The most infuriating things is not knowing what's causing the problem.
Not quite.
You either click on the LAN game, which 'just works' because the open to LAN server has 'cast an announcement with all the details and you received it.
Or
You do a Direct Connect, in which case you need to enter all the correct information manually. A.B.C.D:P
If you have to do a Direct Connect you are already experiencing firewall / connectivity issues.
Just an FYI, at this point the only info you've provided has been discarded as a cause of your failure to get LAN games running.
So in order to get help here you've got to provide some data about the configuration, what you are seeing, doing, and the exact failure mode.
OK, I'm not entirely sure what you're asking for, using the forums like this is relatively new to me, but I'll give it my best.
I'm running 64 bit Windows 7 with Java version 8 update 73 as is the other user.
We're starting the game up as normal, the other user (for the sake of anonymity) boots up their single player world and opens it to LAN as usual, producing the 4 digit code as opposed to the usual 5 digit code. I then attempt to login to the world over LAN using direct connect because, as previously established, the world doesn't show up in the nice little list. I then instantly receive a failure to connect message.
Hope this helps explain it a little more
A 5 digit port is not "usual", it is just randomly picked out of 1024-65535. A 4 digit port is just less likely to be had because there is only ~9000 vs ~55,000 5 digit ports. So get this out of your head that 4 digits means something. It doesn't.
When you say you direct connect, what IP address are you typing in? You should be typing in his computer's local IP address. IE 192.168.x.x
Cast aside your festive doylaks: dragon stuff is about to happen.
Multiplayer is lonely once you understand how it actually works.
Alpha 1.0.4
That is correct. Utilising IPconfig I have found the appropriate IP address on the local 'home' network I am attempting to use. (192.168.1.64). I keep bringing up the 4 digits thing because, every time before this, the numbers were usually somewhere between the late 48,000 and the early 50,000, but if you say it doesn't matter then I'll follow your lead on that.
Likely because the game is programmed to select further out ports so there is less chance of a conflict.
The next course of action is to make sure the firewall on the host computer is not blocking both java and the port. As a test, try disabling the firewall and see if you can connect.
Cast aside your festive doylaks: dragon stuff is about to happen.
Multiplayer is lonely once you understand how it actually works.
Alpha 1.0.4
My goodness. Forgive me for being so simple as to not come to this solution sooner, though I was certain I had tried this before, but nevertheless credit where it is due.
Your solution has worked and I am very thankful. *Bows*
Although entirely disabling the firewall seems a tad excessive, the results were more than I could have hoped, for the first time the world showed up in the list, I did not even need to type in the IP.
Thank you
Disabling the entire firewall IS execessive.
But 'modern' firewalls try to be 'easy to use' which means that they don't pop up and ask you whether to allow or disallow things. They just make assumptions. It's very annoying to try to make a firewall behave the way you want it to.
Note that being connected to a "Home" network causes your firewall to be more permissive than when connected to "Public" networks.
Got ya, well thanks for the help guys
I think we consider this issue resolved