Created attachment 147477 [details] patch to create emulators/virtualbox-ose/files/patch-src-VBox-ExtPacks-VNC-VBoxVNC.cpp Currently, VirtualBox always assigns port 5900 when listening for VNC connections via IPv6, as opposed to IPv4, where the port to use can be set using the property TCP/Ports. The attached patch changes this behavior so that TCP/Ports also applies when listening via IPv6, thereby using the same port number for both IPv4 and IPv6. It should be applied in /usr/ports and will create a file emulators/virtualbox-ose/files/patch-src-VBox-ExtPacks-VNC-VBoxVNC.cpp. -- Martin
Maintainers CC'd
Maintainer feedback?
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ed48632461bd9b3c095333c34040fe921673ab48 commit ed48632461bd9b3c095333c34040fe921673ab48 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-01-05 01:43:43 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-01-05 01:43:43 +0000 emulators/virtualbox-ose{,-nox11}{,-legacy}: Fix listen VNC on TCP port on IPv6 address Four new options are available: - "VNCAddress4" -> IPv4 address to use - "VNCPort4" -> IPv4 Port to use - "VNCAddress6" -> IPv6 address to use - "VNCPort6" -> IPv6 port to use "TCP/Ports" is used for backward compatibility as IPv4 and IPv6 ports if "VNCPort4" or "VNCPort6" is not defined. Detailed description is here: https://www.virtualbox.org/browser/vbox/trunk/src/VBox/ExtPacks/VNC/VBoxVNC.cpp#L361 PR: 193778 emulators/virtualbox-ose-legacy/Makefile | 2 +- .../patch-src_VBox_ExtPacks_VNC_VBoxVNC.cpp (new) | 67 ++++++++++++++++++++++ emulators/virtualbox-ose-nox11-legacy/Makefile | 2 +- emulators/virtualbox-ose-nox11/Makefile | 2 +- emulators/virtualbox-ose/Makefile | 2 +- .../patch-src_VBox_ExtPacks_VNC_VBoxVNC.cpp (new) | 58 +++++++++++++++++++ 6 files changed, 129 insertions(+), 4 deletions(-)