Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Possible to disable the SC connection query prompt?

Single Click discussions / bugs
Post Reply
sbussinger
Posts: 4
Joined: 2006-03-31 09:41

Possible to disable the SC connection query prompt?

Post by sbussinger »

Is there any way to either tell a VNCViewer in LISTEN mode to automatically always accept all connections from SC servers, or to tell the SC server to not cause the viewer to display the connection query prompt?

My staff has been using standard WINVNC servers to connect to listening viewers without the prompt and is quite used to working that way. I'm getting some complaints about the accept connection prompt and I don't care much for it myself. It's just more clicks for little gain.

Perhaps it could prompt only if there's already a session in progress?

What are my options here? Thanks!
buch85
8
8
Posts: 10
Joined: 2006-03-07 13:42

Post by buch85 »

You can modify the code of the vncview in the file ClientConnection.cpp in the function ClientConnection::NegotiateProtocolVersion().
You have just to remove the MessageBox and to modify the "if" that check what the user has pressed.

Bye

PS: excuse me for my poor english
sbussinger
Posts: 4
Joined: 2006-03-31 09:41

Post by sbussinger »

I was hoping there was an existing command line option I was missing rather than having to compile a custom version of the viewer.

If I do have to go the custom compilation route, is there anyway to tweak this from the SC source code side? I have some other changes I'd like to make there anyway and I'd like to limit the number of custom packages I have to mess with.

Thanks!
buch85
8
8
Posts: 10
Joined: 2006-03-07 13:42

Post by buch85 »

:( currently i have the PROBLEM that i couldn't obtain a version of SC (compiling it by myself) that doesn't make the viewer to prompt anything...

Try to compile a SC yourself and you'll get what you are searching for... (I think)

:cry: I need the opposite thing that you are searching for.

Technical Info: To start a connection without the prompt "issue" you have "just" to make the server to use the RFB 003.006 protocol message instead the RFB 003.016 (that is used from the SC)

If you compile SC (without modifiing it) and it works prompting as usal... please tell me HOW, HOW, HOW you got it :D
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Post by redge »

I know you need the opposite of this topic below:
[topic=4533][/topic]

I think vncviewer option available coming soon to disable prompt feature for SC and classic winvnc based on latest vncviewer 1.0.1 or tabbed viewer 1.2.x
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
Arnaut
8
8
Posts: 8
Joined: 2006-07-20 08:02

Re: Possible to disable the SC connection query prompt?

Post by Arnaut »

The prompt is not in SC, but in the viewer. I had the same problem and eliminated it by commenting about 10 lines of code and then recompiling; if you want, I can send you the modified version of the viewer
"Kids, You tried your best, and failed miserably. The lesson is, never try" (H. Simpson)
menash
8
8
Posts: 16
Joined: 2009-07-17 09:13

Re: Possible to disable the SC connection query prompt?

Post by menash »

sorry for jump this topic, but is there a solution to that today without compiling?
i need that when single click user, connect to my computer(i'm using vnc viewer in listen mode), i'll not get a prompt that tell me that someone want to connect to me, but the connection will be without that prompt, and immediately it will create.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Possible to disable the SC connection query prompt?

Post by Rudi De Vos »

Not done.
If wecomment out that code part, then other people request to add it back.

The normal winvnc version doesn't have the prompt unless it's set.
For SC this is hardcoded.
menash
8
8
Posts: 16
Joined: 2009-07-17 09:13

Re: Possible to disable the SC connection query prompt?

Post by menash »

thank you rudi :-)
Sainsuper
40
40
Posts: 96
Joined: 2008-04-02 10:47

Re: Possible to disable the SC connection query prompt?

Post by Sainsuper »

Hi, i think you should use:
Vncviewer.exe -listen -autoacceptincoming
Post Reply