Me and my sister want to play Minecraft to together and I want to now if, because I'm playing with the new LAN servers, I need to portforward.
I made a world on my mac used the open to LAN option and when I tried to connect from my other computer (which is connected to the same router) it said "Unknown host" than the name.
The good news is it picks it up when scanning for LAN worlds.
More importantly though if I don't have to portforward what do I do.
Back up your /etc/hosts file: cd /etc sudo cp hosts hosts.bu
Then edit hosts file: sudo nano hosts
Mine contains:
127.0.0.1 localhost
127.0.1.1 XPS-8100-1110
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
When I use /publish or "Open to LAN" it shows XPS-8100-1110:port, which binds to the random port it lists on 127.0.1.1. If I change /etc/hosts so my hostname points to my LAN IP:
192.168.1.102 XPS-8100-1110
before starting minecraft, then it should bind to the random port on my LAN IP. However, another player on the LAN may need to connect to 192.168.1.102:port if somehow the LAN search thing does not find it (or for temporary port forwarded in from internet)
It works (at bottom):
efflandt@XPS-8100-1110:/etc$ netstat -ltn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN
tcp6 0 0 192.168.1.102:49018 :::* LISTEN
PS: Just one other thing. If not using Windows networking or samba that can find other computers by name, even though the other client can find your LAN game automatically and shows its IP address, when trying to connect, the other client it said cannot find XPS-8100-1110, so I also needed to add an extra line to the client's /etc/hosts with the 192.168.1.102 XPS-8100-1110. Then I was able to almost join, but both sides kicked me back to an error screen about being logged into another computer because I was logged into both minecrafts with same username (button at bottom to main menu).
For Linux and probably OS X: Back up your /etc/hosts file: cd /etcsudo cp hosts hosts.bu Then edit hosts file: sudo nano hosts Mine contains:
127.0.0.1 localhost 127.0.1.1 XPS-8100-1110 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
When I use /publish or "Open to LAN" it shows XPS-8100-1110:port, which binds to the random port it lists on 127.0.1.1. If I change /etc/hosts so my hostname points to my LAN IP:
192.168.1.102 XPS-8100-1110
before starting minecraft, then it should bind to the random port on my LAN IP. However, another player on the LAN may need to connect to 192.168.1.102:port if somehow the LAN search thing does not find it (or for temporary port forwarded in from internet) It works (at bottom):
efflandt@XPS-8100-1110:/etc$ netstat -ltn Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN tcp6 0 0 :::22 :::* LISTEN tcp6 0 0 ::1:631 :::* LISTEN tcp6 0 0 192.168.1.102:49018 :::* LISTEN
PS: Just one other thing. If not using Windows networking or samba that can find other computers by name, even though the other client can find your LAN game automatically and shows its IP address, when trying to connect, the other client it said cannot find XPS-8100-1110, so I also needed to add an extra line to the client's /etc/hosts with the 192.168.1.102 XPS-8100-1110. Then I was able to almost join, but both sides kicked me back to an error screen about being logged into another computer because I was logged into both minecrafts with same username (button at bottom to main menu).
Thanks for your informative replies!
Efflandt: Is this a bug with minecraft, or a problem with the wireless router you connect to, or with the version of ubuntu you are using? If it's a bug with minecraft, then someone should try to add it to the bug list.
All you need to do is open your world to LAN access and on another machine when they go onto multilayer it will search for LAN games. All they need to do is click on your LAN game and your good to go.
No port forwarding is required.
its not letting me with my bro its saying refused to connect
The game reads the hostname of the system and relays information to the remote client. The problem is the hostname resolution (functionally DNS) has no way of determining which IP address its supposed to be, without some higher level service to probe for that info. Potentially Homegroups and Bonjour are capable of doing this in lieu of a local DNS server, but they are not a 2-way street (which is why sometimes one host works, but the other way around doesn't). Outside of that, it would need to be manually added to the hosts file to manually tell the system which hostname is which IP, and can potentially change if they are not statically assigned.
I don't think you have to port forward to play on a LAN server
It depends on how the LAN is setup, but for most people who just have a common router or wireless router then you are correct- no port forwarding should be required at all.
You might, however, need to check your antivirus and firewall settings on the computer which is acting as the host.
I made a world on my mac used the open to LAN option and when I tried to connect from my other computer (which is connected to the same router) it said "Unknown host" than the name.
The good news is it picks it up when scanning for LAN worlds.
More importantly though if I don't have to portforward what do I do.
Thanks Stuz21
Back up your /etc/hosts file:
cd /etc
sudo cp hosts hosts.bu
Then edit hosts file:
sudo nano hosts
Mine contains:
When I use /publish or "Open to LAN" it shows XPS-8100-1110:port, which binds to the random port it lists on 127.0.1.1. If I change /etc/hosts so my hostname points to my LAN IP:
before starting minecraft, then it should bind to the random port on my LAN IP. However, another player on the LAN may need to connect to 192.168.1.102:port if somehow the LAN search thing does not find it (or for temporary port forwarded in from internet)
It works (at bottom):
PS: Just one other thing. If not using Windows networking or samba that can find other computers by name, even though the other client can find your LAN game automatically and shows its IP address, when trying to connect, the other client it said cannot find XPS-8100-1110, so I also needed to add an extra line to the client's /etc/hosts with the 192.168.1.102 XPS-8100-1110. Then I was able to almost join, but both sides kicked me back to an error screen about being logged into another computer because I was logged into both minecrafts with same username (button at bottom to main menu).
Thanks for your informative replies!
Efflandt: Is this a bug with minecraft, or a problem with the wireless router you connect to, or with the version of ubuntu you are using? If it's a bug with minecraft, then someone should try to add it to the bug list.
play on 12w24 instead
or get 26a
Yes but only on your LAN . not via the internet
The game reads the hostname of the system and relays information to the remote client. The problem is the hostname resolution (functionally DNS) has no way of determining which IP address its supposed to be, without some higher level service to probe for that info. Potentially Homegroups and Bonjour are capable of doing this in lieu of a local DNS server, but they are not a 2-way street (which is why sometimes one host works, but the other way around doesn't). Outside of that, it would need to be manually added to the hosts file to manually tell the system which hostname is which IP, and can potentially change if they are not statically assigned.
This is probably the firewall acting up. How to deal with it depends on the exact error message, and what AV/Firewall your running.
It depends on how the LAN is setup, but for most people who just have a common router or wireless router then you are correct- no port forwarding should be required at all.
You might, however, need to check your antivirus and firewall settings on the computer which is acting as the host.