winapps-org/winapps

App start fails saying the RDP port is not open

Open

#270 opened on Sep 23, 2024

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Shell (463 forks)batch import
good first issue

Repository metrics

Stars
 (15,020 stars)
PR merge metrics
 (Avg merge 12h 59m) (3 merged PRs in 30d)

Description

The following command: timeout 5 nc -z "$RDP_IP" "$RDP_PORT" &>/dev/null; makes app startup fail, because it does not hear back over the rdp port, even though the VM is up and running RDP-server on said port.

This is also why setup.sh fails with Error 13 in some instances even though the VM is reachable through RDP. See #260. A fix should remedy both issues.

Maybe we can find an alternative to this port-check over netcat? Alternatively we could leave out the port-check entirely and just report the connection error if the rdp connection-attempt fails one step later in the connection-process.

Contributor guide