After more 2 000 000 (two million) views on forum for 1.5.0.x development versions... and 1.6.1.0, 1.6.3.0-dev versions
A new stable version, UltraVNC 1.6.4.0 and UltraVNC SC 1.6.4.0 have been released: https://forum.uvnc.com/viewtopic.php?t=38095
Feedback is always welcome

2025-12-14: 1.7.1.X-dev release builds need tests and feedback: https://forum.uvnc.com/viewtopic.php?t=38134

2025-12-02: We need help: English Wikipedia UltraVNC page has been requested to deletion: https://forum.uvnc.com/viewtopic.php?t=38127
Any help is welcome to improve the UltraVNC page and/or to comment on the Wikipedia Talk page

2025-05-06: Forum password change request: https://forum.uvnc.com/viewtopic.php?t=38078

2023-09-21: Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Development: UltraVNC development is always here... Any help is welcome
Feedback is welcome

Running portable version from command line

Here you will find help for frequently asked questions as well as for your specific question
Post Reply
itlec
Posts: 1
Joined: 2025-12-08 19:09

Running portable version from command line

Post by itlec »

Hi guys,
I'm using UltraVNC version 1.6.4.0 portable on windows

I'm trying to integrate UltraVNC into my .NET project (VB.NET).
I tried a few .NET DLLs, but they didn't work, so I settled for UltraVNC Portable.

Background:
My program is a server client program connected via TCP socket.
I can send commands to the Client from the Server.
One of the commands is to turn on the VNC server (on the client, so I can control it from the app Server)
I ran into a few problems, so I decided to test it first with CMD...

Testing:
I created a blank ultarvnc.ini file in "%appdata%\local\UltraVNC\"
I ran "winvnc.exe -run -passwd 12344" to load the server on a computer.
The first run filled in the info, but I still got the Configuration page.
ChatGPT helped me figure out that the there is no hashed password in the ini, so I created one with "createpassword64.exe 12344" and copied it to the ini.
Now it loads without the Configuration page, but I still can't connect to it with "vncviewer.exe IP_ADDRESS::5900 -passwd 12344"
I get the following error "Failed to connect to server!"
Running vncviewer.exe (GUI) and entering a password works just fine.

Any ideas?
Thanks
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6989
Joined: 2004-04-23 10:21
Contact:

Re: Running portable version from command line

Post by Rudi De Vos »

Train your AI better :)

vncviewer.exe -password mysecret 1.1.1.1:5900
UltraVNC links (join us on social networks):
- Website: https://uvnc.com/
- Forum: https://forum.uvnc.com/
- GitHub sourcecode: https://github.com/ultravnc/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
- uvnc2me: https://uvnc2me.com/
itlec
Posts: 1
Joined: 2025-12-08 19:09

Re: Running portable version from command line

Post by itlec »

Rudi De Vos wrote: 2025-12-08 20:58 Train your AI better :)

vncviewer.exe -password mysecret 1.1.1.1:5900
Thank you!
That did the trick

(now how do I mark this as solved?)
Post Reply