[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: |
|
||||||||
| 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 |