Skip to content

fix: try all neighbour IPs when RDP port check fails - #986

Merged
oskardotglobal merged 1 commit into
winapps-org:mainfrom
mrvi0:fix/432-multi-ip-bad-port
Oct 16, 2026
Merged

oskardotglobal merged 1 commit into
winapps-org:mainfrom
mrvi0:fix/432-multi-ip-bad-port

Conversation

@mrvi0

@mrvi0 mrvi0 commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • When ip neigh lists multiple IPs for the VM MAC, try each address until RDP answers instead of stuffing newlines into nc / /dev/tcp
  • Warn on each failed candidate; only error after all have been tried
  • Include the IP in the BAD_PORT notification (on ip '…') for easier debugging

Fixes #432

ip neigh can return multiple addresses for the same VM MAC after a
reset; probe each candidate and include the IP in BAD_PORT (#432).

Signed-off-by: MrVi <support@b4dcat.ru>
@mrvi0
mrvi0 force-pushed the fix/432-multi-ip-bad-port branch from 2d3f844 to e40ac0c Compare October 16, 2026 09:41

@oskardotglobal oskardotglobal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for your contribution.

@oskardotglobal
oskardotglobal merged commit f20d859 into winapps-org:main Oct 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App start fails with BAD_PORT message because grep returns multiple IPs

2 participants