Added Lan issues stuff
This commit is contained in:
parent
32870ccb82
commit
6f65f2e3f3
1 changed files with 56 additions and 1 deletions
55
README.md
55
README.md
|
|
@ -99,6 +99,38 @@ New-NetFirewallRule -DisplayName "Minecraft UDP" -Direction Inbound -LocalPort 2
|
|||
Get-NetFirewallRule | Where-Object DisplayName -like "*Minecraft*" | Format-Table DisplayName, Enabled, Direction, Action
|
||||
```
|
||||
|
||||
## LAN Connection Configuration
|
||||
|
||||
### 1. Network Discovery and File Sharing
|
||||
|
||||
```powershell
|
||||
# Enable Network Discovery
|
||||
Set-NetFirewallRule -DisplayGroup "Network Discovery" -Enabled True
|
||||
|
||||
# Enable File and Printer Sharing
|
||||
Set-NetFirewallRule -DisplayGroup "File and Printer Sharing" -Enabled True
|
||||
```
|
||||
|
||||
### 2. Check Network Profile
|
||||
|
||||
```powershell
|
||||
# Get current network profile
|
||||
Get-NetConnectionProfile | Select-Object Name, NetworkCategory
|
||||
|
||||
# Set network to Private (if needed)
|
||||
Set-NetConnectionProfile -NetworkCategory Private
|
||||
```
|
||||
|
||||
### 3. Verify LAN Connectivity
|
||||
|
||||
```powershell
|
||||
# Get local IP address
|
||||
Get-NetIPAddress | Where-Object {$_.AddressFamily -eq "IPv4" -and $_.PrefixOrigin -eq "Dhcp"} | Select-Object IPAddress, InterfaceAlias
|
||||
|
||||
# Test connection to other players
|
||||
Test-NetConnection -ComputerName <other_player_ip> -Port 25565
|
||||
```
|
||||
|
||||
## Removing Rules
|
||||
|
||||
If you need to remove the firewall rules, use these commands:
|
||||
|
|
@ -116,6 +148,8 @@ Remove-NetFirewallRule -DisplayName "Minecraft UDP"
|
|||
- The script will automatically detect Java installations
|
||||
- Default Minecraft port is 25565, adjust if using a different port
|
||||
- These rules allow both incoming and outgoing connections for Minecraft
|
||||
- For LAN games, ensure all players are on the same network
|
||||
- Some antivirus software may block Minecraft connections
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
|
|
@ -140,3 +174,24 @@ Get-Process java | Select-Object Id, ProcessName, Path
|
|||
```powershell
|
||||
java -version
|
||||
```
|
||||
|
||||
5. LAN Connection Issues:
|
||||
```powershell
|
||||
# Check if Windows Defender Firewall is blocking Minecraft
|
||||
Get-NetFirewallApplicationFilter -Program "C:\Users\rob\AppData\Roaming\ATLauncher\jre\bin\java.exe"
|
||||
|
||||
# Verify network sharing settings
|
||||
Get-NetFirewallRule -DisplayGroup "Network Discovery" | Select-Object DisplayName, Enabled
|
||||
Get-NetFirewallRule -DisplayGroup "File and Printer Sharing" | Select-Object DisplayName, Enabled
|
||||
|
||||
# Check if port is in use
|
||||
netstat -ano | findstr :25565
|
||||
```
|
||||
|
||||
6. Common LAN Issues:
|
||||
- Ensure all players are on the same network
|
||||
- Check if Windows Defender Firewall is blocking the connection
|
||||
- Verify that Network Discovery is enabled
|
||||
- Make sure the host's computer is not in sleep mode
|
||||
- Check if any antivirus software is blocking the connection
|
||||
- Ensure the host's Minecraft version matches other players' versions
|
||||
Loading…
Add table
Add a link
Reference in a new issue