Google Answers Logo
View Question
 
Q: Changing VNC Viewer listening port ( No Answer,   2 Comments )
Question  
Subject: Changing VNC Viewer listening port
Category: Computers > Software
Asked by: netondemand-ga
List Price: $5.00
Posted: 09 Dec 2004 11:32 PST
Expires: 08 Jan 2005 11:32 PST
Question ID: 440456
My customers connect to me for support VIA "TightVNC" with a reverse
connection to a listening viewer. However I can only get them to
connect to the default listening port (5400). I tried changing the
listening port by changing the command to "-listen 5401" but then I
would have the viewer listening on both ports (5400 & 5401). How can I
change the code so it listens only on the port specified?
Answer  
There is no answer at this time.

Comments  
Subject: Re: Changing VNC Viewer listening port
From: crythias-ga on 09 Dec 2004 21:35 PST
 
This is hard coded in the source code. I'm not an expert at it, but
I've encountered the issues that you've experienced with TightVNC
1.2.9. The code doesn't look at anything but the FLASH_PORT_OFFSET,
the value is located in rfb.h, and is referenced in the
VNCviewerAPP32.cpp, line 56:
			m_pflasher = new Flasher(FLASH_PORT_OFFSET);
			m_pdaemon = new Daemon(m_options.m_listenPort);

The only *good* way to fix it is to change the rfb.h to reflect, then
recompile vncviewer. Not exactly the best option if you don't have a
C++ compiler onhand. I'd post this as a bug.

The thing you can do, though, is use your firewall to block incoming
requests for 5400 and just receive on your specified port.

This is a free comment.
Subject: Re: Changing VNC Viewer listening port
From: ritcs09-ga on 03 Jan 2005 16:50 PST
 
Have you disabled the AutoPortSelect setting?  Otherwise, it's likely
a bug in the code.  I could recompile WinVNC for you (using either
.NET or g++) if you would like, you could download the MinGW port and
do it yourself.  Hope to help.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy