[MC-1327] A world opened to LAN on a Linux computer is impossible to join Created: 30/Oct/12  Updated: 09/Feb/13  Resolved: 30/Oct/12

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.1, Minecraft 1.4.2
Fix Version/s: None

Type: Bug
Reporter: sam Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: LAN, linux, multiplayer
Environment:

Linux


Issue Links:
Duplicate
duplicates MC-473 Linux users can't open to lan because... Resolved
Confirmation Status: Unconfirmed

 Description   

If a game is opened to LAN on linux, it is impossible to join, this is because Minecraft calls java.net.InetAddress.getLocalHost() to get the current IP, then broadcasts the server as being hosted on this IP. On windows this returns the LAN IP, a number like 192.168.X.Y, but on Linux, this returns 127.0.0.1 (which is what it should be returning, because that IS the local host. The windows java implementation is wrong.)



 Comments   
Comment by sam [ 30/Oct/12 ]

Sorry, I did search, but used to narrow a search, and didn't find that.

Comment by Cloudy (Aaron Mills) [ 30/Oct/12 ]

Duplicate of MC-473. Please search before posting bug reports.

Generated at Sun Jan 12 11:54:04 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.