[MC-1030] Custom ip/port for lan multiplayer Created: 28/Oct/12 Updated: 04/May/15 Resolved: 09/Nov/12 |
|
| Status: | Resolved |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Minecraft 1.4.2 |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | hyper fang | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | IP, multiplayer | ||
| Environment: |
all |
||
| Issue Links: |
|
||||||||
| Confirmation Status: | Unconfirmed | ||||||||
| Description |
|
Not being able to select costume IP to launch multiplayer server from singleplayer sucks!!! |
| Comments |
| Comment by Kumasasa [ 09/Nov/12 ] |
|
Fixed in 1.4.4 |
| Comment by Dave Lawrence [ 30/Oct/12 ] |
|
The behaviour can be seen in Java outside of Minecraft: System.out.println (java.net.InetAddress.getLocalHost().toString()); which prints different IP addresses according to the various circumstances already described (ie Windows vs Linux and modified /etc/hosts) |
| Comment by Dave Lawrence [ 30/Oct/12 ] |
|
Should the localhost issue be reported as a separate bug, seeing as it is, well totally separate to the bug mentioned in the title. 127.0.0.1 localhost and the problem is fixed. Some more command output for your info: You see now the computer name is associated with a LAN address (a Bluetooth connection as it happens) and hey presto, Minecraft's publish-to-LAN now binds to this address. (At some point I'll confirm on a real LAN that this makes the game accessible, but I'm 99% certain it will). |
| Comment by Selbram (Tory Clement) [ 28/Oct/12 ] |
|
This is true. I have seen this twice though in here, which is odd. I just ran a test on CentOS6 and it binds to *:25565. Unless these guys are updating their serverip line in server.properties. I don't know how this is breaking. The only other issue would be related to firewalls. |
| Comment by Kumasasa [ 28/Oct/12 ] |
|
It doesn't matter to what IP the server is bound, from the server-hosting PC itself the server is reachable at 192.168.1.56, 127.0.0.1 or localhost, for the rest of the LAN the server is reachable at 192.168.1.56 |
| Comment by Selbram (Tory Clement) [ 28/Oct/12 ] |
|
I believe the problem is that in linux it binds it to 127.0.0.1 and other people on the lan cannot connect to that. |
| Comment by Kumasasa [ 28/Oct/12 ] |
|
If your PC has 192.168.1.56 than is 127.0.0.1 the same, because the latter means localhost |