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
Why must I hardcode the IP address?
Why must I hardcode the IP address?
Can't it prompt the client for one each time he wants to connect? And please don't mention my-ip.com, etc. - I don't want to do it...
- Rudi De Vos
- Admin & Developer
- Posts: 6863
- Joined: 2004-04-23 10:21
- Contact:
Re: Why must I hardcode the IP address?
This is unfortunate. Dynamic DNS can be very handy. From my cell phone (Treo 650) I can remotely power on my home PC, VNC into it, and then shut it back down.Anonymous wrote:Can't it prompt the client for one each time he wants to connect? And please don't mention my-ip.com, etc. - I don't want to do it...
What I did before I discovered SC, was have a batch that launched a regular installation of VNC and added the client. It went something like this:
c:
cd "\program files\PathToVNC"
winvnc -run
ping 127.0.0.1>nul
winvnc -connect mydns.dyndns.com
Note the 2nd line is just to delay about three seconds.
Now, if your 'customer' is using XP or windows 2000, then you could use something like this:
@echo off
echo.
set IP=
set /p IP=What IP address do you want to connect to?
c:
cd "\program files\PathToVNC"
winvnc -run
ping 127.0.0.1>nul
winvnc -connect %IP%
Now something fancier could be made in VBscript but I don't want to.
Sorry, couldn't resist. Seriously though, I don't have time now but it could be hobbled together and should work on standard operating systems that can run UVNC.
Cheers
maybe can help you to create an dynamic update of your IP inside SC
[topic=4046][/topic]
[topic=4046][/topic]
Last edited by redge on 2005-10-08 01:18, edited 1 time in total.
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
OS Win: xp home + vista business + 7 home
only experienced user, not developer
hmmmm do you mean something like thisredge wrote:maybe can help you to create an dynamic update of your IP inside SC
[topic=4046][/topic]
Might be usefull for testing.
[topic=4530][/topic]
As usal.. Use at own risk.
Dwalf
Last edited by Dwalf on 2005-10-10 14:52, edited 3 times in total.
How did you create "scprompt.exe"?
I see helpdesk.txt calls 127.0.0.1:5500 .
Also, when you see the logo screen, it just calls at once without the client pressing anything, but I guess it's cool because he did press "connect" in "scprompt.exe", after all.
BTW, it leaves traces in the registry [HKEY_CURRENT_USER\Software\ORL\VNCHooks\Application_Prefs], but I assume it's a general SC bug and not just your version's. Now some people would just and say it doesn't bother anyone, but sorry - when the registry is intruded even at the slightest, a program can no longer be called "registry/traces free".
I see helpdesk.txt calls 127.0.0.1:5500 .
Also, when you see the logo screen, it just calls at once without the client pressing anything, but I guess it's cool because he did press "connect" in "scprompt.exe", after all.
BTW, it leaves traces in the registry [HKEY_CURRENT_USER\Software\ORL\VNCHooks\Application_Prefs], but I assume it's a general SC bug and not just your version's. Now some people would just and say it doesn't bother anyone, but sorry - when the registry is intruded even at the slightest, a program can no longer be called "registry/traces free".
I totally agree your point of view.when the registry is intruded even at the slightest, a program can no longer be called "registry/traces free".
maybe can be fixed to next release of SC 1.0.1 ?
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
OS Win: xp home + vista business + 7 home
only experienced user, not developer
- Rudi De Vos
- Admin & Developer
- Posts: 6863
- Joined: 2004-04-23 10:21
- Contact:
Its just a simple Autoit Script
Back to point A.
Please note the TCPIP and Port is the TCPIP and Port of the person running ultravnc vncviewer.exe - listen on their COMPUTER. If you use 127.0.0.1 it will do a lookback. Basicly 127.0.0.1 is the computer you are on not the person running the viewer. I left 127.0.0.1 in the pic while i was testing localy..sorry!
Hope that helps a bit.
Scprompt.exe is a autoit script. You can decompile scprompt.exe in autoit.
It takes the two fields and passes them on to the section what makes the helpdesk.txt and in this file we use the DIRECT option. This is also the main reason i use windows temp folder and copy all the files ther in one location. When all is done at the end it runs winvnc.exe. Took about 30min to make.
Here it is.
; 07 OCT 2005 - Donald Muir (South African in London)
#include <GuiConstants.au3>
#include <Process.au3>
;--------------------------------------------
; Create SC Prompt
;--------------------------------------------
; GUI
GuiCreate("Ultra@VNC SC", 200, 100)
GUISetIcon ("icon1.ico")
; INPUT
$tcpipitem = GuiCtrlCreateInput("", 50, 10, 130, 20)
$portitem = GuiCtrlCreateInput("5500", 50, 30, 130, 20)
; LABEL
GuiCtrlCreateLabel("TCP/IP", 10, 10, 40, 30)
GuiCtrlCreateLabel("Port", 10, 30, 40, 30)
; BUTTON
$subitem = GuiCtrlCreateButton("Connect", 10, 60, 80, 20)
$canitem = GuiCtrlCreateButton("Cancel", 100, 60, 80, 20)
GUISetState ()
$msg = 0
While $msg <> $GUI_EVENT_CLOSE
$msg = GUIGetMsg()
Select
Case $msg = $subitem
exitloop
EndSelect
If $msg = $canitem Or $msg = -3 Or $msg = -1 Then Exit
Wend
ProcessWaitClose($subitem)
;-----------------------------------------------
; BUILD helpdesk.txt
;-----------------------------------------------
FileDelete(@WindowsDir & "\temp\helpdesk.txt")
FileCopy("icon1.ico", @WindowsDir & "\temp")
FileCopy("icon2.ico", @WindowsDir & "\temp")
FileCopy("logo.bmp", @WindowsDir & "\temp")
FileCopy("MSRC4Plugin.dsm", @WindowsDir & "\temp")
FileCopy("rc4.key", @WindowsDir & "\temp")
FileCopy("vnchooks.dll", @WindowsDir & "\temp")
FileCopy("winvnc.exe", @WindowsDir & "\temp")
FileCopy("background.bmp", @WindowsDir & "\temp")
$file = FileOpen(@WindowsDir & "\temp\helpdesk.txt", 1)
If $file = -1 Then
MsgBox(0, "Error", "Unable to Create helpdesk.txt.")
Exit
EndIf
FileWrite($file, '[TITLE]' & @CRLF)
FileWrite($file, ' ULTRA@VNC SC' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[DIRECT]' & @CRLF)
FileWrite($file, '[HOST]' & @CRLF)
FileWrite($file, 'Direct Support' & @CRLF)
FileWrite($file, '-connect ' & GUICtrlRead($tcpipitem) & ':' & GUICtrlRead($portitem) & '
-noregistry' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTTOP]' & @CRLF)
FileWrite($file, 'Dubble Click to make a connection' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTRMIDDLE]' & @CRLF)
FileWrite($file, 'Version 1.0 RC18' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTRTOP]' & @CRLF)
FileWrite($file, 'UltraVNC SC' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTMIDDLE]' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTBOTTOM]' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTRBOTTOM]' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTBUTTON]' & @CRLF)
FileWrite($file, 'About us..' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[WEBPAGE]' & @CRLF)
FileWrite($file, 'http://www.ultravnc.com' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTCLOSEBUTTON]' & @CRLF)
FileWrite($file, 'Close..' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON1TITLE]' & @CRLF)
FileWrite($file, 'Establishing connection ...' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON1A]' & @CRLF)
FileWrite($file, '5 min try period' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON1B]' & @CRLF)
FileWrite($file, 'If it fails, the software will remove himself' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON1C]' & @CRLF)
FileWrite($file, 'from your system. ' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON2TITLE]' & @CRLF)
FileWrite($file, 'Connection active.' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON2A]' & @CRLF)
FileWrite($file, 'Warning, your desktop is remote visable' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON2B]' & @CRLF)
FileWrite($file, 'You can break the connection any time' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON2C]' & @CRLF)
FileWrite($file, 'by using the close button' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[WEBPAGE]' & @CRLF)
FileWrite($file, 'http://www.ultravnc.com' & @CRLF)
FileWrite($file, '' & @CRLF)
;--------------------------------------------------
; CLOSE THE WINDOW
;--------------------------------------------------
GUIDelete()
;--------------------------------------------------
; CLOSE THE CONNECT.HTML FILE
;--------------------------------------------------
FileClose($file)
;--------------------------------------------------
; RUN WINVNC SC
;--------------------------------------------------
Run(@WindowsDir & "\temp\winvnc.exe")
exit
Please note the TCPIP and Port is the TCPIP and Port of the person running ultravnc vncviewer.exe - listen on their COMPUTER. If you use 127.0.0.1 it will do a lookback. Basicly 127.0.0.1 is the computer you are on not the person running the viewer. I left 127.0.0.1 in the pic while i was testing localy..sorry!
Hope that helps a bit.
Scprompt.exe is a autoit script. You can decompile scprompt.exe in autoit.
It takes the two fields and passes them on to the section what makes the helpdesk.txt and in this file we use the DIRECT option. This is also the main reason i use windows temp folder and copy all the files ther in one location. When all is done at the end it runs winvnc.exe. Took about 30min to make.
Here it is.
; 07 OCT 2005 - Donald Muir (South African in London)
#include <GuiConstants.au3>
#include <Process.au3>
;--------------------------------------------
; Create SC Prompt
;--------------------------------------------
; GUI
GuiCreate("Ultra@VNC SC", 200, 100)
GUISetIcon ("icon1.ico")
; INPUT
$tcpipitem = GuiCtrlCreateInput("", 50, 10, 130, 20)
$portitem = GuiCtrlCreateInput("5500", 50, 30, 130, 20)
; LABEL
GuiCtrlCreateLabel("TCP/IP", 10, 10, 40, 30)
GuiCtrlCreateLabel("Port", 10, 30, 40, 30)
; BUTTON
$subitem = GuiCtrlCreateButton("Connect", 10, 60, 80, 20)
$canitem = GuiCtrlCreateButton("Cancel", 100, 60, 80, 20)
GUISetState ()
$msg = 0
While $msg <> $GUI_EVENT_CLOSE
$msg = GUIGetMsg()
Select
Case $msg = $subitem
exitloop
EndSelect
If $msg = $canitem Or $msg = -3 Or $msg = -1 Then Exit
Wend
ProcessWaitClose($subitem)
;-----------------------------------------------
; BUILD helpdesk.txt
;-----------------------------------------------
FileDelete(@WindowsDir & "\temp\helpdesk.txt")
FileCopy("icon1.ico", @WindowsDir & "\temp")
FileCopy("icon2.ico", @WindowsDir & "\temp")
FileCopy("logo.bmp", @WindowsDir & "\temp")
FileCopy("MSRC4Plugin.dsm", @WindowsDir & "\temp")
FileCopy("rc4.key", @WindowsDir & "\temp")
FileCopy("vnchooks.dll", @WindowsDir & "\temp")
FileCopy("winvnc.exe", @WindowsDir & "\temp")
FileCopy("background.bmp", @WindowsDir & "\temp")
$file = FileOpen(@WindowsDir & "\temp\helpdesk.txt", 1)
If $file = -1 Then
MsgBox(0, "Error", "Unable to Create helpdesk.txt.")
Exit
EndIf
FileWrite($file, '[TITLE]' & @CRLF)
FileWrite($file, ' ULTRA@VNC SC' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[DIRECT]' & @CRLF)
FileWrite($file, '[HOST]' & @CRLF)
FileWrite($file, 'Direct Support' & @CRLF)
FileWrite($file, '-connect ' & GUICtrlRead($tcpipitem) & ':' & GUICtrlRead($portitem) & '
-noregistry' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTTOP]' & @CRLF)
FileWrite($file, 'Dubble Click to make a connection' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTRMIDDLE]' & @CRLF)
FileWrite($file, 'Version 1.0 RC18' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTRTOP]' & @CRLF)
FileWrite($file, 'UltraVNC SC' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTMIDDLE]' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTBOTTOM]' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTRBOTTOM]' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTBUTTON]' & @CRLF)
FileWrite($file, 'About us..' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[WEBPAGE]' & @CRLF)
FileWrite($file, 'http://www.ultravnc.com' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[TEXTCLOSEBUTTON]' & @CRLF)
FileWrite($file, 'Close..' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON1TITLE]' & @CRLF)
FileWrite($file, 'Establishing connection ...' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON1A]' & @CRLF)
FileWrite($file, '5 min try period' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON1B]' & @CRLF)
FileWrite($file, 'If it fails, the software will remove himself' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON1C]' & @CRLF)
FileWrite($file, 'from your system. ' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON2TITLE]' & @CRLF)
FileWrite($file, 'Connection active.' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON2A]' & @CRLF)
FileWrite($file, 'Warning, your desktop is remote visable' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON2B]' & @CRLF)
FileWrite($file, 'You can break the connection any time' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[BALLOON2C]' & @CRLF)
FileWrite($file, 'by using the close button' & @CRLF)
FileWrite($file, '' & @CRLF)
FileWrite($file, '[WEBPAGE]' & @CRLF)
FileWrite($file, 'http://www.ultravnc.com' & @CRLF)
FileWrite($file, '' & @CRLF)
;--------------------------------------------------
; CLOSE THE WINDOW
;--------------------------------------------------
GUIDelete()
;--------------------------------------------------
; CLOSE THE CONNECT.HTML FILE
;--------------------------------------------------
FileClose($file)
;--------------------------------------------------
; RUN WINVNC SC
;--------------------------------------------------
Run(@WindowsDir & "\temp\winvnc.exe")
exit
Last edited by Dwalf on 2005-10-08 13:51, edited 1 time in total.
Ok, now that I finally realize scprompt.exe is a sort of an archive too (I thought you always meant remotep.exe!), I've discovered 2 things:
1. There's no need for helpdesk.txt . One can just use command line parameters:
Sure, I could create a VBScript in seconds, but there's nothing like giving the client one file.
Also, it looks a lot more professional with the logo and all (but then, you have to create helpdesk.txt)...
2. If one uses the command line method above, getting rid of "vnchooks.dll" does stop the registry intrusion!
Not to mention that it leads us one step closer to the one file concept!
But is it bad not have this file? I don't seem to notice any difference.
1. There's no need for helpdesk.txt . One can just use command line parameters:
Of course, we still have to give the client a frontend for this.winvnc.exe -connect dynamic_ip:5500 -noregistry
Sure, I could create a VBScript in seconds, but there's nothing like giving the client one file.
Also, it looks a lot more professional with the logo and all (but then, you have to create helpdesk.txt)...
2. If one uses the command line method above, getting rid of "vnchooks.dll" does stop the registry intrusion!
Not to mention that it leads us one step closer to the one file concept!
But is it bad not have this file? I don't seem to notice any difference.
I started a new thread for this app.Anonymous wrote:Ok, now that I finally realize scprompt.exe is a sort of an archive too (I thought you always meant remotep.exe!), I've discovered 2 things:
1. There's no need for helpdesk.txt . One can just use command line parameters:Of course, we still have to give the client a frontend for this.winvnc.exe -connect dynamic_ip:5500 -noregistry
Sure, I could create a VBScript in seconds, but there's nothing like giving the client one file.
Also, it looks a lot more professional with the logo and all (but then, you have to create helpdesk.txt)...
2. If one uses the command line method above, getting rid of "vnchooks.dll" does stop the registry intrusion!
Not to mention that it leads us one step closer to the one file concept!
But is it bad not have this file? I don't seem to notice any difference.
[topic=4530][/topic]
Very true one can cut it down more this way.
The code is GPL and open to change.
Regards
Dwalf
[mod=494,1128865456]completed url and replaced strated by started[/mod]
Last edited by Dwalf on 2005-10-09 13:44, edited 1 time in total.