[Pkg-tigervnc-devel] How to get tigervnc to listen on only one interface

Robert Arkiletian robark at gmail.com
Tue Sep 23 17:19:15 BST 2025


On Tue, Sep 23, 2025 at 12:04 AM Joachim Falk <joachim.falk at gmx.de> wrote:

> Hi Robert,
>
> On 23.09.25 07:33, Robert Arkiletian wrote:
> > Hi Joachim,
> >
> > Tigervnc binds to all interfaces by default. I need it to only bind to a
> > specific interface (ip).
> > I have been trying, without much luck, to use the -interface parameter
> > of tigervnc (man xtigervnc) under Debian 13. I have tried using this line
> > $interface = "192.168.x.xxx";
> > in /etc/tigervnc/vncserver-config-defaults
> > but if I add that line the file just gets ignored and then it just binds
> > to localhost as one of the other lines in the file is
> > $localhost = "no";
> >
> > Do you know how to use the -interface parameter in tigervnc server?
>
> not sure what the problem is.
>
> $interface = "192.168.178.46";
> $localhost = "no";
>
> in  /etc/tigervnc/vncserver-config-defaults works in my case.
> Admittedly, quickly tested on a back port of the package on Debian 12.
>
>
Thanks for the suggestion. That finally solved the issue!
the line in /etc/tigervnc/vncserver-config

$interface = "192.168.x.xxx";

MUST come BEFORE the line

$localhost = "no"

I was always putting the $interface line after the $localhost line. In that
case, it just binds to localhost. This was not clear in the man pages.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-tigervnc-devel/attachments/20250923/eb952af2/attachment.htm>


More information about the Pkg-tigervnc-devel mailing list