From joachim.falk at gmx.de Tue Sep 23 08:04:43 2025 From: joachim.falk at gmx.de (Joachim Falk) Date: Tue, 23 Sep 2025 09:04:43 +0200 Subject: [Pkg-tigervnc-devel] How to get tigervnc to listen on only one interface In-Reply-To: References: Message-ID: 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. Best, Joachim Falk -- Joachim Falk You can always tell a really good idea by the enemies it makes. --programmers' axiom From robark at gmail.com Tue Sep 23 17:19:15 2025 From: robark at gmail.com (Robert Arkiletian) Date: Tue, 23 Sep 2025 09:19:15 -0700 Subject: [Pkg-tigervnc-devel] How to get tigervnc to listen on only one interface In-Reply-To: References: Message-ID: On Tue, Sep 23, 2025 at 12:04?AM Joachim Falk 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: