Celebrating the 22th anniversary of the UltraVNC: https://forum.uvnc.com/viewtopic.php?t=38031
Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/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
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Multiple servers on 1 computer

Post Reply
boothcat
Posts: 1
Joined: 2010-07-02 21:51
Location: Louisiana
Contact:

Multiple servers on 1 computer

Post by boothcat »

Hi all,

I apologize if this is addressed in another post. I searched but could not find an answer.

I am attempting to install 2 servers on one computer, each one listening on different ports. I have installed 2 instances of Ultra in different directories and even renamed the services. If both are running, neither will connect. If one is disabled, the other will connect.

Does anyone know why this may be happening?

Background: I have a few software support users that need to be able to remote into computers, but I want them to have different connection settings than IT (user prompt, no file xfr, etc).
YY
200
200
Posts: 996
Joined: 2006-11-13 15:11

Re: Multiple servers on 1 computer

Post by YY »

boothcat wrote:I am attempting to install 2 servers on one computer, each one listening on different ports. I have installed 2 instances of Ultra in different directories ...... If both are running, neither will connect. If one is disabled, the other will connect.
By default, when UVNC starts, it will check any uvnc instance is running already, and will not continue if found that.

If the second uvnc instance is under application mode, it will return an error message. If the second uvnc instance is service, it will just shutdown and restart again (the default installation config. it as Automatic)

boothcat wrote:and even renamed the services
So you tried to start the two uvnc session as services. As explained above, the two uvnc session will conflict with each other. Both will shutdown and restart again and again, thus both not working.


In fact, you may have multi uvnc sessions running simultaneously, you need to use the option "-multi" AND start the second (or even 3rd) session as application mode, e.g.

Code: Select all

winvnc2.exe -multi -run
Bonji
100
100
Posts: 339
Joined: 2008-05-13 14:54

Re: Multiple servers on 1 computer

Post by Bonji »

Is it possible to run two VNC servers on the same computer with both being services?

I have the same situation where I need one VNC to be configured one way, and another VNC configured another.
-Ben
B
800
800
Posts: 2338
Joined: 2009-09-09 14:05

Re: Multiple servers on 1 computer

Post by B »

Bonji wrote:Is it possible to run two VNC servers on the same computer with both being services?

I have the same situation where I need one VNC to be configured one way, and another VNC configured another.
Apparently <b>not</b> -- that's exactly what YY explained. YY also provided a decent workaround.

(I wonder if running different flavors of VNC might work; I notice the UltraVNC service is called uvnc_service - I doubt TightVNC's service has the same name.)
Bonji
100
100
Posts: 339
Joined: 2008-05-13 14:54

Re: Multiple servers on 1 computer

Post by Bonji »

Apparently not -- that's exactly what YY explained. YY also provided a decent workaround.
I understood what he was saying earlier, but I was asking in case a service-based solution wasn't actually considered directly. It's also trivial to name the service something else in the event that would be helpful.

The workaround doesn't when no one is logged on.
Last edited by Bonji on 2010-07-28 13:59, edited 2 times in total.
-Ben
B
800
800
Posts: 2338
Joined: 2009-09-09 14:05

Re: Multiple servers on 1 computer

Post by B »

I'm sorry, but I really don't understand. What do you mean by "in case a service-based solution wasn't actually considered directly"?
Bonji
100
100
Posts: 339
Joined: 2008-05-13 14:54

Re: Multiple servers on 1 computer

Post by Bonji »

Anyhoo...

I was able to get two separate VNC installs to work on the same computer when one is a service and one is run in user mode (as mentioned previously).

I then changed the second VNC installation to run as a service using the "-multi -run" command line parameters (I know this is only for user mode, but I'm experimenting). The service doesn't start, but it takes it ~10 seconds or so to error out. While it is trying to start, I can initiate a connection to the server, but it always errors out about invalid protocol regardless of the DSMPlugin settings.

I then installed it as a service using "-service -multi", and the service starts. I cannot connect to either VNC instance now, though. Watching Task Manager I see a third winvnc.exe process starting and stopping repeatedly.

It appears the service only works with -service as the parameter. I'm guessing recoding will be required to address this which probably won't happen for something with such a narrow scope.

I understand this is the result mentioned earlier, but I wasn't sure anyone has actually tried it. It's now tried (complete with steps taken in case anyone else has some ideas).
Last edited by Bonji on 2010-07-28 17:39, edited 2 times in total.
-Ben
Post Reply