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
- 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

Help with automatic connetion

Post Reply
dror
Posts: 4
Joined: 2008-11-13 13:00

Help with automatic connetion

Post by dror »

Hi,
I'm new here, and I'm sorry if my question is trivial.

I'm working with ultraVNC 1.0.4.

I have tried to establish an automatic viewer-server connection using command line and failed to.

My configuration is: Two PCs, running XP, connected to each other directly.
I want that upon load, one of them will be the server and the other the viewer, automatically.
I wrote the following batch commands, and connected the batches to the startup:

::::: In the server:
cd "c:\program files\ultravnc\"
START "winvnc" winvnc -run
START "winvnc" winvnc -connect 11.1.1.1::5900

:::: In the viewer:
cd "c:\program files\ultravnc\"
START "vncViewer" vncviewer -listen 5900 -password 111111

Unfortunately, the application starts, but no connection established. If I'm manually choosing "Add new client" from the WinVNC, it works just fine.

Hope you can help,
Thanks, Dror
mcutting
8
8
Posts: 14
Joined: 2008-11-05 18:58

Re: Help with automatic connetion

Post by mcutting »

For some unknown reason, you can't call the parameters from the command line when using a batch file.

To get around this, make a shortcut of the exe, and add the parameters to this. Modify the batch so that it starts the shortcut (for example, vnc.lnk), which should do the trick.
Last edited by mcutting on 2008-11-13 14:45, edited 1 time in total.
YY
200
200
Posts: 996
Joined: 2006-11-13 15:11

Re: Help with automatic connetion

Post by YY »

I will suggest you make the following change:

1. Download the UVNC 1.0.5 to replace the 1.0.4
2. Change the batch command at server pc to:
  cd "c:\program files\ultravnc\"
  START "winvnc" winvnc -run
  PING xx.xx.xx.xx -n 1 -w 4000 >NUL
  START "winvnc" winvnc -autoreconnect -connect 11.1.1.1:5900

  where xx.xx.xx.xx must be a non-reachable (invalid) ip. This is used for delay purpose.

3. At viewer pc, you can use the batch as is. However, the password option is useless in this case, so you can simplify it as:
  START "vncViewer" vncviewer -listen 5900
Last edited by YY on 2008-11-14 05:28, edited 1 time in total.
dror
Posts: 4
Joined: 2008-11-13 13:00

Re: Help with automatic connetion

Post by dror »

Thank you !

Installing version 1.0.5 solved the problem and it now works directly from the command line!

Dror
Post Reply