Here is some basic information on how to connect to the UND HPC Linux clusters using Xming. Iex "New-NetFireWallRule -DisplayName 'WSL 2 Firewall Unlock' -Direction Inbound -RemoteAddress $remoteip -Action Allow -Protocol TCP " įor( $i = 0 $i -lt $ports. SSH port forwarding for the use of GUI applications is allowed, but not for computational work unless special arrangements are made prior to the work being run. Iex "New-NetFireWallRule -DisplayName 'WSL 2 Firewall Unlock' -Direction Outbound -LocalPort $ports_a -Action Allow -Protocol TCP " #adding Exception Rules for inbound and outbound Rules Iex "Remove-NetFireWallRule -DisplayName 'WSL 2 Firewall Unlock' " Depending on your operating system, you may need to install packages to make this work - MacOS, for example, requires Xming or an equivalent. #You can change the addr to your ip config to listen to a specific address $addr = '0.0.0.0 ' $remoteip = wsl.exe /bin /bash -c "ip addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+) ' Įcho "The Script Exited, the ip address of WSL 2 cannot be found "
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |