This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Forward WSL2 ports to host machine/platform (handles Windows Firewall) | |
| # | |
| # NOTE: 'iex' is a shortform for 'Invoke-Expression' | |
| # Ports that should be forwarded to WSL2 and allowed through firewall (comma-separated) | |
| $ports = @(8081); | |
| # WSL IP address changes whenever WSL restarts | |
| $wsl_ip = $(wsl hostname -I).Trim(); |