Bug 193778 - emulators/virtualbox-ose: make VNC listen on same port for IPv6 and IPv4
Summary: emulators/virtualbox-ose: make VNC listen on same port for IPv6 and IPv4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Virtualbox Team (Nobody)
URL: https://www.freshports.org/emulators/...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-19 18:17 UTC by Martin Birgmeier
Modified: 2025-01-05 01:58 UTC (History)
6 users (show)

See Also:


Attachments
patch to create emulators/virtualbox-ose/files/patch-src-VBox-ExtPacks-VNC-VBoxVNC.cpp (1.16 KB, patch)
2014-09-19 18:17 UTC, Martin Birgmeier
grahamperrin: maintainer-approval? (vbox)
grahamperrin: maintainer-approval? (emulators)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Birgmeier 2014-09-19 18:17:58 UTC
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
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-09-19 18:17:58 UTC
Maintainers CC'd
Comment 2 Walter Schwarzenfeld 2018-01-14 03:24:46 UTC
Maintainer feedback?
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-01-05 01:55:12 UTC
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(-)