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
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
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
Re: Help with automatic connetion
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.
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.
Re: Help with automatic connetion
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
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.
Re: Help with automatic connetion
Thank you !
Installing version 1.0.5 solved the problem and it now works directly from the command line!
Dror
Installing version 1.0.5 solved the problem and it now works directly from the command line!
Dror