mojira.dev
MC-98598

LAN List does not populate reliably

Moderator Note

I have reopened this ticket, specifically referring to the lack of a LAN list in the Multiplayer menu. Direct connect does work in my tests. I have included some notes from MC-98499 here:

Nothing shows up in the multiplayer menu. It is possible to select "Direct Connect" in the multiplayer menu, enter the IP address of the local game, and enter the game that way. But still nothing is listed under "Scanning for games on local network." With 2 of the 4 computers, the behaviour is as expected and the games show up. With the other 2, they can host the game and be seen by the 2 correctly functioning computers, but not by each other. When the version is switched back to 1.8.9, all the 4 computers can host and detect LAN games as usual. This problem is specific to 1.9.

When sharing a world with LAN to another computer it never shows up for the other computer. Switching back to 1.8 on both computers it works again.

Related issues

MC-98499 LAN worlds don't show up when scanning for local networks in 1.9 only MC-98772 Server timeout on 1.9 Client, but not 1.8.9 client MC-99283 Lan not working in 1.9 (mac) MC-99419 LAN Worlds MC-99884 Some minecraft instances can't see LAN games after upgrading to 1.9 MC-100899 Lan servers not connecting MC-111439 Version 1.9 Onward LAN Multiplayer Bug MC-114264 LAN not working on Mac OSX in Minecraft 1.9 and later - works with 1.8.9 and earlier MC-114300 "Open to LAN" doesn't work on Mac MC-120854 Win10 (Java Edition) no longer sees XP networked game MC-149298 Java on MacOS will not connect to Windows10 LAN world MC-150194 issue with LAN multiplay with Mac MC-150203 LAN World not Showing in Server Index MC-150957 I can't join a LAN MC-153511 Multyplayer MC-155825 Cross platform lan MC-160938 Multiplayer does not list LAN games on macOS MC-161806 The scanning for a lan world doesn't work MC-166641 LAN server MC-169486 when i play any version of minercarft in multiplayer it just says "scanning for games on you local network" and i can only play with direct connect MC-176218 Can't access LAN server MC-178565 LAN connection only working one way MC-178602 Issues When Connecting Windows and Mac Devices MC-194135 LAN don´t work MC-201293 LAN worlds won't show up on my server list MC-224941 LAN party access unavailable MC-227814 Local LAN does not autodetect MC-228734 Lan worlds wont show in multiplayer in 1.17 Release MC-230989 does not let me enter the worlds in LAN MC-231329 does not let me enter the worlds in LAN MC-233100 Lan in 1.17.1 Not working MC-234427 Cannot see LAN world MC-234921 LAN does not work in 1.17.1 MC-258472 Lan World not showing up MC-274005 Lan not showing up except when using direct connect MC-274188 Lan does not show with local networks

Attachments

Comments

migrated
[media][media]
kumasasa

-Firewall not opened for 1.9 -

migrated

I have no firewalls. We use only Mac's and firewalls is nothing I've used ever since I started with computers 30 years ago. 🙂 Maybe some Mac people should take care of this issue (Mac people normally have no firewalls - firewalls is a Windows-thing). So - LAN does not work WITHOUT firewalls.

kumasasa

Fair enough.

Ezekiel

Macs actually do have Firewalls, they're in Security & Privacy > Firewall. However it is off by default.

Ezekiel

Can you please confirm that Direct Connect either works or does not work?

Open System Preferences > Network on the Host computer and record the local IP address. It should begin with the number 10 or 192.

On the connecting computer, use the Direct Connect feature and enter that IP address, followed by a colon and then the port number that the host computer game shows in chat.

Example: 10.0.1.2:56664

Please tell me the outcome of this.

migrated

Yes - there is a firewall in settings on a Mac (came late in OSX development and many ask why) - no one use that - and as said - it's not on as default 'cause in Mac-universe no one cares about firewalls in OS (it's a Windows-thing).

Confirming: Direct Connect don't work. Gives:
java.net.ConnectionExeption: Connection refused.

I suppose you have Macs so you can see the real world yourself? Or is it only Win-machines in your lab?

Ezekiel

I asked you because I was able to use direct connect on my Mac, confirming this is not a Mac issue and instead is a technical support issue! So, without further ado,

This is a technical support issue; this site is for bug reports only. For technical support please use the Mojang Support Center.

migrated

So - I'm able to play MC over LAN with 1.8 - but not 1.9. And it's not a bug as you say...then I suppose it's a JAVA-thing. Ditect Connect gives "java.net.ConnectionExeption: Connection refused". I just wait for an JAVA update then.

Note: I can connect to MC-servers on Internet (some have updated now). So - my JAVA is OK for connecting over Internet - but not over LAN.

Ezekiel

Please force a crash by pressing F3 + C for 10 seconds while in-game and attach the crash report ([minecraft|http://hopper.minecraft.net/help/finding-minecraft-data-folder]/crash-reports/crash-<DATE>-client.txt) here.

This can be done in a single player world.

migrated

Crash report

migrated

Direct connect works! But as LAN gives random number every time you LAN out a world it's not practical...my kids don't fix this to have to enter IP plus port number every time.
So - my theory is that MC 1.9 don't scan for LAN'ed MC's on local network...no scanning at all...maybe it scans IP but not port numbers? I don't know. What I know is that 1.7 and 1.8 always do the job. But not 1.9.

migrated

Big news! I have both LAN and WiFi on all my Macs (WiFi for lication on maps etc). I turned off WiFi on both both Macs and now the other Macs find a LAN'ed world from one of the Macs!!!!
So - it's solved...though it's still a "bug" 'cause of course one should be able to have both LAN and WiFi on and that's no problem with MC 1.7 and MC 1.8.
So - when both LAN and WiFi connection of computers - at least Macs - the port scanning in MC is broken.

migrated

Is the implication that the Minecraft JVM isn't scanning all active network interfaces, just whatever one it deems (apparently incorrectly in many cases) to be the primary?

migrated

same issue, here are my details

---- Minecraft Crash Report ----
// But it works on my machine.

Time: 4/24/16 5:09 PM
Description: Manually triggered debug crash

java.lang.Throwable
	at bcf.az(SourceFile:1694)
	at bcf.t(SourceFile:1615)
	at bcf.av(SourceFile:962)
	at bcf.a(SourceFile:392)
	at net.minecraft.client.main.Main.main(SourceFile:124)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
	at bcf.az(SourceFile:1694)

-- Affected level --
Details:
	Level name: MpServer
	All players: 1 total; [bmt['notch_is_god'/1622, l='MpServer', x=-44.40, y=190.06, z=641.25]]
	Chunk stats: MultiplayerChunkCache: 441, 441
	Level seed: 0
	Level generator: ID 01 - flat, ver 0. Features enabled: false
	Level generator options: 
	Level spawn location: World: (0,162,0), Chunk: (at 0,10,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
	Level time: 6558313 game time, 18000 day time
	Level dimension: 0
	Level storage version: 0x00000 - Unknown?
	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
	Level game mode: Game mode: adventure (ID 2). Hardcore: false. Cheats: false
	Forced entities: 1 total; [bmt['notch_is_god'/1622, l='MpServer', x=-44.40, y=190.06, z=641.25]]
	Retry entities: 0 total; []
	Server brand: vanilla
	Server type: Integrated singleplayer server
Stacktrace:
	at bku.a(SourceFile:365)
	at bcf.b(SourceFile:2515)
	at bcf.a(SourceFile:401)
	at net.minecraft.client.main.Main.main(SourceFile:124)

-- System Details --
Details:
	Minecraft Version: 1.9
	Operating System: Mac OS X (x86_64) version 10.11.4
	Java Version: 1.8.0_74, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 3440600256 bytes (3281 MB) / 4231266304 bytes (4035 MB) up to 4231266304 bytes (4035 MB)
	JVM Flags: 7 total; -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M -Xmx4048M -Xms4048M
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	Launched Version: 1.9
	LWJGL: 2.9.2
	OpenGL: Intel(R) Iris(TM) Graphics 6100 GL version 2.1 INTEL-10.14.58, Intel Inc.
	GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because ARB_framebuffer_object is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

	Using VBOs: No
	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Resource Packs: faithful32pack.zip (incompatible), Faithful 1.9 - 16w03a.zip
	Current Language: English (US)
	Profiler Position: N/A (disabled)
	CPU: 4x Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
migrated

direct connect does not work for me, says its trying, then gives up

Ezekiel

Then its a different issue, possibly firewall or incorrect configuration of your router. This ticket is specifically about the LAN list not working.

migrated

This is still an issue in 1.10.

migrated

Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.

This is an automated comment on any open or reopened issue with out-of-date affected versions.

migrated

Yes, this is still an issue in 16w44a. I do not have permission to update the versions affected, or I would do so.

migrated

If both Macs are ONLY on wired LAN = OK. If one or both Macs also have WiFi on = issue occurs.

migrated

Has there been a resolution for this issue yet?

When using Minecraft 1.9 or later (1.10, 1.11) on any version of Mac OSX, Open to LAN yields no results when Scanning for games on local network.

This happens ONLY on WIFI, when all Mac computers wired on ethernet, LAN servers can be found.

Works on all versions of Minecraft 1.8.9 and earlier.

Direct Connect works.

I have tried:

  • quitting and restarting Minecraft

  • restarting computer

  • power cycling modem and router

  • re-installing Minecraft on all computers.

  • Confirmed Firewall is OFF

  • turned firewall ON on all computers and then turned OFF

  • restarted all computers again

  • all this, no love

I have spent hours searching the internet for a solution and have only found the Direct Connect option. This is not practical as each time the user opens the single player game to LAN, the Port changes. So even if the IPv4 address is static, new information has to be provided to every other player each time the fame is restarted.

migrated

There are two reasons I can think of that wifi would matter:

(1) If the Mac has multiple NICs, then the discovery system is tying its broadcasts to a specific NIC, which means they're not going out in the first place on wifi.
(2) If the response (UDP I assume again) is somehow not being sent out on the NIC it came in on, meaning that the response is bound to an unconnected NIC, so the packet is being thrown away.

I've written discovery services before. It's not hard. I've even had to design one to ensure that the response went out on the same NIC it came in on for purposes of fail over when both NICs were on the same subnet. This required that I bind a listener to each NIC (separately for eth0, eth1 on Linux), but that was a special case, and in general, the NIC and subset don't need to be considered, because the OS will route a datagram to the NIC set up for the IP address of the recipient. (My point is that I know that a listening port CAN be bound to a specific NIC, and I know that this is not the default situation, and it was much harder than the normal thing to do.)

For the protocols I developed, they were all client-initiated. The clients (written in Java, BTW) would send out broadcasts (to 255.255.255.255). The datagrams included source IP address (implicitly) and the port number on which the client is listening. This would get picked up by the servers, which would respond by sending a datagram back directly to the client specifically (single recipient) at the requested port. Macs were involved in this testing, and although I didn't test this intentionally, I have done so with both wifi and wired ethernet.

So other than some kind of weird decision to bind a UDP transmission of listening port to a specific NIC, rather than a specific subnet, I can't imagine why Minecraft is having this problem. I simply never ran into this kind of problem.

Without knowing if Minecraft uses server-initiated discovery or client-initiated discovery, I can't speculate further. Someone more experienced with wireshark could tell us.

migrated

The bug can be fixed by adding "-Djava.net.preferIPv4Stack=true" to your JVM arguments in the launcher.

migrated

I tried Greg's recommendation but can't seem to get this working either.
I can direct connect just fine, but I have to specify ip:port, my kids aren't going to be able to do that 😞. I've made sure that we are on the same network and Wifi band (both are on the 2.4 band). I would suspect the ability to direct connect negates any basic networking issues.

How does Minecraft broadcast a game? I can run a network trace and see what is happening.

Edit: Just grabbed a network capture and while Minecraft had a LAN enabled game running, the hosting PC sends out over UDP 64445 to 4445, to multicast address 224.0.2.60. This is received by my other PC, but still nothing shows in the games list.

I have a Netgear R7000 and both PCs are Windows 10, Minecraft versions are the same - 1.12.2

migrated

I tried the JVM arguments fix but it still doesn't work for me. I can't even get a direct connection to work. It times out. I am trying to connect Mac OS 10.11.6 to Mac OS 10.13.2 on wifi through a Motorola router. Using Minecraft version 1.12.2

migrated

i can confirm: this is completely broken. Mac server, windows 10 client, both connected to dumb 100BASE-TX hub. mac firewall is ON. windows defender firewall is OFF, network type is 'private'. PC can connect to mac OK with 'Direct Connect' host:port, but game does NOT appear in 'Scanning' list. both Minecraft 1.12.2

migrated

In my experience the issue is caused by having multiple network interfaces either on hosting or on client side. Minecraft apparently transmits/listens to UDP broadcasts only on one of the available network interfaces, based on wireshark captures. If you want to make sure that the two (or more) computers can see each other, disable the unneeded interfaces temporarily before launching the game.

I hope, that this workaround can help you out until the issue is fixed.

migrated

Affects 18w22c

migrated

I think this one just needs someone to take a look at the logic on how the LAN list gets populated. In all cases I've seen where the multicast traffic is actually getting to the client, the only time the game doesn't show up is when there's other network interfaces (or ipv6 interfaces) involved. True you could disable them, but people have legitimate needs for multiple interfaces (Wifi/wired docking stations, VPN interfaces, etc). So maybe the best way is to just listen for 224.0.2.60:4445 announcements on all available (or up) interfaces.

This has been an issue for quite some time (since 1.8 I believe) and will affect most OSX users by default because of the way ipv6 is enabled by default (which is why you need the JVM options). But even with those options enabled, you can still run into issues if you have multiple interfaces (like me).

The core of the problem is that the game seems to just pick some arbitrary interface to listen on, and if the announcement doesn't come in via that specific interface, then it's no dice.

migrated

I have three Macs and none of them can play a LAN game out of the box.

For each computer and for each Minecraft version (e.g. snapshot versus latest) we must go into the launch options and configure -Djava.net.preferIPv4Stack=true

I've outlined my struggles with this process here: https://gaming.stackexchange.com/a/320864/199492

At the time of writing this, it has 10 upvotes, so this fix is very important for the Java Edition on Mac to be usable.

But that's the good news.  The bad news is that I've recently purchased a 2017 MacBook and the above workaround has stopped functioning.  I believe it's due to this bug MC-98598.

In all cases I've seen where the multicast traffic is actually getting to the client, the only time the game doesn't show up is when there's other network interfaces (or ipv6 interfaces) involved. True you could disable them, but people have legitimate needs for multiple interfaces (Wifi/wired docking stations, VPN interfaces, etc). So maybe the best way is to just listen for 224.0.2.60:4445 announcements on all available (or up) interfaces.

This is my fear... The MacBook pro appears to ship with iBridge interface (en5 on my machine) and I have a feeling it's conflicting as I've done all of the standard troubleshooting that's worked on the other Macs.  Interestingly enough, this en5 has no option to disable.  A reddit forum states it's used for the touch-bar and keyboard, so forcing it off may be a bad idea anyway.  https://www.reddit.com/r/MacOS/comments/8bzk6k

I determined iBridge using the following command:

cat /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist | grep en5

Which returns (scroll to the far right to see iBridge)

<string>en5</string>
			<string>IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHC1@14/XHC1@14000000/HS03@14100000/iBridge@14100000/NCM Data@5/AppleUSBNCMData/en5</string>

Direct connection technically works as a viable workaround but it's not a practical workaround since the server port changes each time we fire up a LAN game.

Perhaps some logic could be added to try to locate the "internet" interface?  https://stackoverflow.com/questions/8462498

I'm very interested in seeing this bug to completion and if needed, offering testing and debug logs to the developers.

migrated

There is another possible workaround for this problem: explicitly specify which network interface the system should use for multicast. Under linux, just add a route for network 224.0.0.0/4 with the following command:

route add -net 224.0.0.0 netmask 240.0.0.0 dev interface_name

where interface_name is the name of the network interface to use for multicast traffic.

Under windows, change the metric of the interface in question to the lowest value among all of them. Open the Advanced TCP/IP settings dialog under IPv4 settings of the interface, uncheck automatic metric, then enter 1 for interface metric. The value of 1 will beat every other interfaces with automatic metric enabled, because the lowest value assigned automatically is 5.

I hope that this little tweaking resolves your problems.

migrated

The issue is not that the Mac looking to join isn't receiving the multicast traffic. In all cases, the multicast traffic gets to the client on the correct interface. It's the application that's not listening for it on the correct interface.

migrated

Gábor,

I tried your solution to add the default route for multicast, and it didn't seem to help.  For Mac the commands were:

sudo route delete 224.0.0/4
sudo route add -net 224.0.0.0 -netmask 240.0.0.0 -device en0

But it does not fix the problem for the one client – MacBook Pro – that fails to see the Minecraft LAN server.  The MacBook Air (with IPv4 workaround) and Windows 10 Dell XPS can connect but the MacBook pro cannot unless it is using the direct connect option. 

migrated

There are no solutions posted here that will work reliably. Gábor's solution will not work because it's not a problem with the network stack. The Java arguments will work as long as you don't have any other valid ipv4 interfaces that the minecraft application will choose (i.e. VPN interfaces).

My suspicion (as I've posted 3 times already), is that the minecraft application picks an arbitrary interface to listen for the multicast traffic on, but that is not always the interface the traffic arrives at. This is an application issue. If we knew what logic the application was using to pick the interface, we could come up with a workaround, but it doesn't seem that anyone with access to the source code is interested in looking at this painful regression that has existed since 1.9 was released.

IN ALL CASES, you can see the traffic arrive at your PC by running:

sudo tcpdump -A -n host 224.0.2.60

This will output something like this if another client is announcing a LAN game:

11:13:07.739601 IP 10.88.88.88.53383 > 224.0.2.60.4445: UDP, length 61
..^..<..@.-...E..Y........
Ed,...<...].E..[MOTD]Fire*** - ultimate survival[/MOTD][AD]59973[/AD]
^C

 This is proof that the traffic arrives at the network stack, it's just not processed by minecraft.

migrated

By the way, this is the technique I use when I want to use my Mac to connect to my kids LAN worlds using direct connect option. The number between the — [AD] /AD tags is the port. The IP is the source IP of the UDP packet (So in the above example you'd type in — 10.88.88.88:59973 for direct connect). But if it's your kid who has the Mac, good luck with that. They'll probably get frustrated and just play fortnite instead 😉

migrated

Still an issue in 19w06a

migrated

gs007, thank you. You finally pointed me in the right direction to fix this issue. Namely, I had several IPv4 network interfaces on my Win10 machine due to having things like Docker for Windows and Virtual Box installed. Disabling those network interfaces so that I only had a single IPv4 network interface left finally worked.

 

It definitely seems to be the case that the application simply ends up listening on the wrong interface

migrated

This issue also occurs on Windows when the computer has multiple active network interfaces. Minecraft chooses the interface with the highest priority (a.k.a. lowest metric). There are tools to change interface priorities, but the game should offer a list of interfaces to bind to. Non-technical users are stuck and must use "direct connect" which is not as easy as discovery.

migrated

> There are tools to change interface priorities

Can you provide some information on this? MacBook Pro with touchbar can't see lan about 50% of the time.

migrated

@Tres

I'm not sure there will be much you can do on your mac to reliably populate the game list until this bug is addressed by a developer. You can eliminate your wireless, network stack setup, etc, as the problem by running the tcpdump command above on the mac that wants to join the game. If you get an output showing the LAN announcement, your setup is fine. If you only use one interface for 'regular networking' i.e., you don't have any VPN interfaces, don't use virtualization software like VMware or Virtualbox, you may be able to solve it by:

Disabling the ipv6 on your interface at the OSX level:

List interfaces:

networksetup -listallnetworkservices

then (Let's say your interface is 'Wi-Fi' like most), turn off ipv6:{{}}

networksetup -setv6off Wi-Fi

Then you would have to make sure the interface you want is on the top of the priority list in the sidebar of Settings > Network (which looks like the below):

[media]

You can also do this with a Java option in the minecraft launcher or by modifying parameters for Java on your system framework directly. Both are a pain for various reasons and are outlined in detail here.

For what it's worth, I've tried to figure it out on mac-- messing with interface priority, etc, but there doesn't seem to be a consistent correlation where I can this working. I believe there is a logic, I just can't figure it out experimentally.

I am a network guy, not a developer. I've researched all network centric approaches, but the simple answer is, that with OSX, the logic that was used to do this was broken (regression) around 1.8 and no one bothered to fix it. To be fair, OSX has less marketshare, and the networking stack isn't the most fun to work with. I have issues with almost all vendors that develop cross platform networking solutions that include mac.

However, it's my personal opinion, that if an individual minecraft developer with the right knowledge were to look at this, it would be an extremely quick fix.

On the bright side, my kids know how to run a packet capture and understand networking now. I guess that's a positive.

migrated

Also note that in terms of open issues, this one only has 2 less votes than the top voted open issue on MC Java Edition. If we could get more votes to put it on top, perhaps this long lasting issue could be resolved.

migrated

Thanks. Yeah the problem as I understand it is the touchbar has it's own active network interface which increases the chances of the problem occuring.

migrated

For what it's worth, I've tried to figure it out on mac-- messing with interface priority, etc, but there doesn't seem to be a consistent correlation where I can this working. I believe there is a logic, I just can't figure it out experimentally.

 

I'm a Java developer, and finding the primary interface 99% of the time is as simple as reaching to an internet endpoint and binding to that NetworkInterface instance.

The fact that this is a regression is particularly frustrating as the Mojang team already has the working code available. 

migrated

If it's possible, I think a very sane approach/fix for java edition in general (since it's cross platform) is to just listen on all active network interfaces for multicast traffic. It's a very simple solution to a problem that has been around for a long time.

pine1needle

1.15.2 Pre-Release 2 is affected.

migrated

Many years ago this worked on old versions. Been broken for ages. My kids are used to entering an IP address and port number in direct connect ... so there is an educational aspect 😃

Adding "-Djava.net.preferIPv4Stack=true" to the command line arguments in the client only (not game serving) worked for me - it appeared in the multi-player games list.

All my Macs are Wi-Fi, and have been for years. Obviously most of them have Ethernet as well. My machine does not have Ethernet but I have got and used a thunderbolt Ethernet adapter, and ifconfig and System Preferences network list 14 different network interfaces.

My network does not have IPv6, but obviously like all modern operating systems, IPv6 is configured by default - even if it's just local link-local.

My Wi-Fi connection on all machines is at the top of the list. Disabling other networks or IPv6 machine wide is not an option for me - and I don't think it's a good idea. 

I note from above: "This issue also occurs on Windows when the computer has multiple active network interfaces."

migrated

Has affected me since 1.15. Haven't played MC since then

migrated

I can confirm: By disabling all active network interfaces (except the current using one) on Windows, Minecraft will be able to discover local worlds. (at least on my case)

migrated

Disabling everything except for my primary interface and Bluetooth interface made Minecraft immediately recognize the open LAN game.

For a scanning tool meant to make LAN games more convenient to join, disabling all of my interfaces every time I want someone in my house to join my game is in no way convenient.

@gs007: I totally agree with you. This seems like it should be a really simple fix. As people have started using VPNs or Hamachi more regularly, Minecraft shouldn't be selecting a single interface to broadcast (or listen) on. I too remember having no issues with LANs automatically showing up in the server browser pre-1.9.

migrated

Having this issue on PC to PC connection.

Tried all of the above suggestions by others on the thread, but nothing allows me to connect to the other computer on same network. We tried connecting both directions. I can see the game from one computer but can't see it from the other computer.

This is only affecting us when we are on 1.17.1. We tried on 1.16.5 and it connected immediately. Unfortunately, the school project I am trying to help with is a 1.17.1 map.

migrated

I have just moved myself and my son over to Java edition and have the same issue as above on 1.17.1

I was able to access LAN easily on Bedrock even my 4yo could do it. 

But we are not able to see our world's in the LAN list. 

We can use IP/Port Direct Connection, but this is not viable for my son and daughter to do by themselves. 

 

 

migrated

Some quick stats on this issue:

  • Just under 40 duplicate issues opened for this issue over 7 years. 

  • The first mention of this bug was in 2015.

  • It's still 9th on the list of issues people most want fixed by vote for MC Java Edition. After 7 years that's pretty impressive.

  • Last version of MC Java that worked: 1.8

The solution is really simple: Have minecraft java app listen for multicast on ALL interfaces on the client. If you do that it will work.

As a note to bugfix PMs: Maybe 7 years open and reliably in top ten issues users vote on is enough to get the priority raised and have it assigned for a fix. I'm not saying there aren't more important issues out there, but this one keeps slipping through the cracks. 

migrated

Have the same problem.
We played with my sister together in January and February. I created the world, opened it to LAN. My sister connected my world easily.
Now in May she can not find my world. It just doesn't apper when she clicks Multiplayer and Refresh. We have tried:

  • restartign MC on both computers

  • restarting computer itself

  • turning off firewall

  • giving access to open JDK platform binary in Windows Security center

  • switching to another version of the game (between 18.1 and 18.2)

  • resetting Wi-Fi

Please help me. We hoped to play together the latest versions of MC.

migrated

@Ziloloshka I'm sorry to tell you this but I don't think a fix is coming. I have been commenting on this issue, offering technical analysis and suggesting solutions for 8 years, along with others. I'm assuming Mojang keeps it low priority because they want you and your sister to subscribe to realms to play together. I hate to be so jaded but it's the only conclusion I can come to given the number of votes this issue has. The reality is that frogs falling into holes and pathfinding is higher priority than this according to Mojang (Not lying, see MC-250238 and MC-249232 if you don't believe me).

Happily there are easy solutions to get you guys playing together if you're willing to get a little bit technical. The great thing about Java edition is it's flexibility. When you start your LAN world, you will see a message that says "Local game hosted on port xxxx." Write that down. If it disappears before you do, press "t" to get back to your chat window. Then you just need the LAN ip of your computer: type ipconfig /all in a terminal window (windows 10) to get it. You can look up how to do this for your OS on google if you're not running windows.

Finally, give this information to your sister, have her choose Multiplayer >> Direct Connection on her minecraft client. Type in the IP and Port in this format: ip:port  So for example if your IP was 192.168.1.50 and the port the LAN world is hosted on is 3187, you'd have her type 192.168.1.50:3187

She should be able to connect then. Sorry it's so complicated, but-- capitalism rules I guess?

Have fun and happy mining!!

migrated

Finally, give this information to your sister, have her choose Multiplayer >> Direct Connection on her minecraft client. Type in the IP and Port in this format: ip:port  So for example if your IP was 192.168.1.50 and the port the LAN world is hosted on is 3187, you'd have her type 192.168.1.50:3187

Very true.  My kids (5, 8, 12) are shouting port numbers daily to each other.  We have to issue static IP addresses and place labels on the PCs so they know the IP addresses to connect to.   I guess the upside is that Mojang is helping my children learn IPv4 networking.  Thanks for that at least. 😉

migrated

I guess the upside is that Mojang is helping my children learn IPv4 networking.

Before you know it they're going to mark this as 'resolved' and claim that it's a 'feature' in the game; present for the last 8+ years to teach the children of the world the basics of IPv4 networking, ports, and firewalls so they can play with their siblings.

Unfortunately, I don't think that this experience is unique as I was around 10-12 when I first experienced this issue while trying to play with my brother. It was likely the first time I was introduced to IPv4 networking. I'm currently pursuing a degree in IT, so ... it's possible my journey to majoring in IT was started by this bug. Talk about a legacy for a 'priority low' bug. 🤔

migrated

...as I was around 10-12 when I first experienced this issue while trying to play with my brother????

Ah to walk down memory lane. To say I was there at the beginning of Minecraft is a bit of a stretch, but I consider myself an early adopter and remember things about the game that likely no one does (anyone remember what happened when you punched a sheep?). Notch and I had similar beginnings (except I'm probably a bit older and started on a c64 instead of a c128 like him). I remember being fascinated that he was developing a game pretty much as a project and taking so much community input. It was more of a neat indie lego world as opposed to a full fledged game, but still it was pretty cool. Later when Jeb took over we started to see some really cool stuff and Minecraft started looking more like it does today. I still remember when 1.0 dropped.

So imagine how excited I was to play a game with my kids when they were finally old enough to understand what a computer game was. What did I pick? Of course Minecraft!!!! We played constantly. And since LAN worlds were an easy and safe way for us to play together, that's what we chose. So since they're 3 years old we've been playing together. Best thing is that they started playing with each other. Having twins play together and help each other was so cool, and they didn't need my help... That is until 1.9 dropped. I taught them how to deal with it, but it wasn't the same. They lost interest and picked up other games. We've recently gotten back into MC but they're 12 now and I can't help but feel like we lost time (I did get pretty cracked at Fortnite playing with them in the meantime tho).

In any case, glad you got into IT @Ben White. Hope you continue in the networking field-- the industry definitely needs new talent. I think it's being too charitable to credit Mojang's lack of attention to their user community for this issue as the genesis of your future career. Instead use this as a lesson and remember to honor the people who support you in your journey. Should you ever rise to to success due to the collaboration of others, honor that community when they raise their voice. No one succeeds but for the grace of others.

Happy mining!

migrated

(Unassigned)

Confirmed

Platform

Low

Networking

lan-world, server-list

Minecraft 1.9, Minecraft 1.9.2, Minecraft 1.10, Minecraft 1.10.2, Minecraft 16w44a, ..., 1.17.1, 1.18.1, 1.19.2, 1.19.3, 1.21

Retrieved