I use OSXvnc 1.71 on MacOS X (along with RealVNC’s winvnc.exe on Windows), and the Reverse Connect feature is fantastic!
Here’s the background to my question:
On my Windows machine:
- I run the “listening VNC viewer” (vncviewer.exe -listen 5500)
- I’ve set a static local IP address on my local network, 192.168.1.102
In my router I’ve forwarded port 5500 to my Windows machine’s static local IP address.
So for a long time now, when I’ve helped someone who uses Mac OS X, I put OSXvnc 1.71 in their Dock so that later on, while I’m talking to them on the phone, I have them:
- click the OSXvnc 1.71 icon in their Dock
- click in OSXvnc’s “Connect Host:” field
- type in my IP address (which I read to them on the phone each time, since it changes)
- click “Add” or press Return
Recently I’ve discovered the “dynamic DNS” concept (www.dyndns.com), so to make all this a little easier:
- I’ve created an account with dyndns.com, and created my own “host,” which I will refer to as “xxx.getmyip.com” for the purposes of this discussion
- on my Windows laptop I now have “DynDNS Updater” running to keep dyndns.com notified when my ISP’s IP address changes and to update the value of xxx.getmyip.com
So these days, when I’m helping someone on Mac OS X, I now have them:
- click the OSXvnc 1.71 icon in their Dock
- click in OSXvnc’s “Connect Host:” field
- type in my dyndns host name: xxx.getmyip.com
- click “Add” or press Return
This all works great!
Here’s my question:
I’d like to make it even easier for the other person, so I’ve been wondering if it’s possible to create a slightly customized copy of OSXvnc 1.71 which, when launched by the user (typically by clicking the icon on the Dock) would already have the text “xxx.getmyip.com” pre-filled into the “Connect Host:” field, so all that the other person would have to do (when we get on the phone) is:
- click the OSXvnc 1.71 icon in their Dock
- click “Add” or press Return
If this isn’t possible per se, an acceptable alternate solution would be if I could customize OSXvnc so that, when launched by the user, it would not only have the text “xxx.getmyip.com” pre-filled into the “Connect Host:” field, but also immediately initiate the reverse connection to the viewer.
So far, I’ve figured out that I can:
- go to the Applications folder
- Control-click on OSXvnc 1.71.app, then click on “Show Package Contents” in the contextual menu, which opens a folder showing the Contents of the application
but then I have no idea what file(s) in which subfolder(s) I might modify to perform this customization.
Please be aware that I have a Mac running OS X 10.4.8 and I do not have any Developer tools.
I tried using Apple’s Script Editor, but apparently OSXvnc 1.71 isn’t set up for AppleScript.
(I’ve also read your FAQ and have found that I can open the Terminal program on OS X and issue the command:
/Applications/OSXvnc.app/OSXvnc-server -connectHost xxx.getmyip.com
and the OS X user’s machine immediately connects to my listening VNC Viewer, but I’d much rather stick with the regular GUI if at all possible and avoid the other person having to do anything with the Terminal program or shell scripts.)
Thanks in advance for your advice on how to make this small customization to your already incredibly useful application!
Regards,
Martin