# Add firewall rule
New-NetFirewallRule -DisplayName "PSMediaLibrary Server" `
    -Direction Inbound `
    -Protocol TCP `
    -LocalPort 8182 `
    -Action Allow `
    -Profile Any `
    -ErrorAction SilentlyContinue

# Reserve URL
netsh http add urlacl url=http://+:8182/ user=Everyone

Write-Host "`n[✓] LAN access configured!" -ForegroundColor Green
Write-Host "Now change ServerHost to '+' in the script config" -ForegroundColor Cyan