Celebrating the 22th anniversary of the UltraVNC: https://forum.uvnc.com/viewtopic.php?t=38031
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
- 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

Need either multiple instances or port range - possible?

Post Reply
Edrom
Posts: 4
Joined: 2005-10-15 23:44

Need either multiple instances or port range - possible?

Post by Edrom »

I have a remote machine that I need to administer which uses one of its two adapters, (one is wired, the other is wireless). Via the router, I specify a port-forward for 59xx to go to this machine (there are several other computers at that site) and I also ensure that the router doesn't change the DHCP-served IP address of this machine. It seems to use the MAC address to recognize the machine. But if the machine goes wireless (based on need at the site, it is physically disconnected and moved), I still need to manage it. But the router gives it a different IP address due to the different adapter. Following me so far? Is this a strange request? I did search the forums but didn't find a solution.

What I'd like to do is to either specify a range of listening ports (59xx-59xx+n) or instantiate multiple UltraVNC servers on the one machine, one to listen to port 59xx and another to listen to 59xx+1.

Can someone tell me how this can be done? I am unsure of the possibility of running two different implementations of VNC on the same machine. I found out (searching the internet) that RealVNC and TightVNC share registry entries and that seems to preclude running both at once.

Thanks,
Edrom
bevtech
800
800
Posts: 2168
Joined: 2005-08-03 14:07
Location: Pennsylvania, United States

Post by bevtech »

Is single Click an option for your connection problems?? Did you take a look at that as a possible solution.
http://ultravnc.sourceforge.net/addons/singleclick.html


What I'd like to do is to either specify a range of listening ports (59xx-59xx+n) or instantiate multiple UltraVNC servers on the one machine, one to listen to port 59xx and another to listen to 59xx+1.
Maybe a Repeater at your location with ID's

[topic=3173][/topic]
Last edited by bevtech on 2005-10-23 01:00, edited 1 time in total.
Edrom
Posts: 4
Joined: 2005-10-15 23:44

Single Click -- remote unattended machine

Post by Edrom »

I did consider if somehow it would work, but I don't think that it will. Maybe you have an idea??

This is a remote, unattended machine. (Unattended by an administer.) It is either plugged in to wired ethernet or physically moved by the site management to where they want it, then it becomes a wireless machine.

The reason that I don't just leave it a wireless machine is for my own convenience--speed. I do most of my more massive updates when it is wired, and I do the necessary little tweaks when it is wireless. Signal is weak, so bandwidth ends up very low.

It is a kiosk, and to get around the low bandwidth issue, almost all the webpages it uses are local to the machine. (Thus the massive updates.)

---I have not attempted it yet, but if I cannot run two instances of the same client, then can I successfully run two different clients?

Thanks,
Edrom
bevtech
800
800
Posts: 2168
Joined: 2005-08-03 14:07
Location: Pennsylvania, United States

Post by bevtech »

The reason that I don't just leave it a wireless machine is for my own convenience--speed. I do most of my more massive updates when it is wired, and I do the necessary little tweaks when it is wireless. Signal is weak, so bandwidth ends up very low.
I gotcha ...well the wireless maybe tricky part. Does it stay in the Same domain or Wirless Access Point or does it roam for Wireless network to network?

---I have not attempted it yet, but if I cannot run two instances of the same client, then can I successfully run two different clients?
Do you mean have more then one viewer??? or More then one instance of VNC running on a machine???

You can have multiple viewers and also have multi viewers watching a single Winvnc server connection.

As for the more then one instance of VNC running I would guess no, But I am not 100% on that..:(
Bevtech

Windows XP Home, Pro SP2, Windows 2003 SBS server SP2(EN), Windows Media Center Editon 2005,Windows Vista Home Prem.,Fedora Core 6,Win9X, PChelpware Rel 1.0,
UVNC V 1.0.8.2

User not developer..;)
mortenchristensen
8
8
Posts: 25
Joined: 2004-12-05 22:17
Location: Denmark

Re: Need either multiple instances or port range - possible?

Post by mortenchristensen »

Edrom wrote:I have a remote machine that I need to administer which uses one of its two adapters, (one is wired, the other is wireless). Via the router, I specify a port-forward for 59xx to go to this machine

What I'd like to do is to either specify a range of listening ports (59xx-59xx+n) or instantiate multiple UltraVNC servers on the one machine, one to listen to port 59xx and another to listen to 59xx+1.
Best solution is a router, where you can change the port that is forwarded - port 5901 on the internet-side is forwarded as port 5900 on the lan-side (maybe called portmapping).

If your router is too "simple", you can use the repeater in mode I, but the repeater has to run on another machine in the lan.

--
Morten Christensen
Edrom
Posts: 4
Joined: 2005-10-15 23:44

More on the kiosk with two network adapters

Post by Edrom »

Bevtech, although it stays in the same workgroup, there are two NICs and thus 2 MACs. I have the router set up to keep the computer "kiosk" on a specific IP so that I can port forward to it always. (Doesn't get assigned a different IP even if power cycle on the router.) But the static IP seems to be based on the MAC, not on the computer name, so when someone unplugs the computer, XP seems to automatically switch to the wireless NIC, but now the IP address changes and that breaks the port forward.

Note here--if I sound like I know what I'm talking about, that's just barely. What I've done so far and described, I understand. But I am not an expert in any way about port forwarding or networking in general.

Only 1 viewer. Only 1 instance of VNC. I already determined through some pain that Real/Tight cannot both be running at the same time. So I am wondering (without again going through a painful experiment) if real/ultra or tight/ultra can both run at the same time.

Morten, I'm not sure if the router is "simple", but I think that I may be so. It is a Netgear WGR614.

So port mapping... Can I have 2 ports mapped to a single one? (Is that even what I want?) I don't understand. The basic goal is that I want to get to the kiosk whether it is using the wired or the wireless NIC, and I have no way of knowing which it will be using.

Thanks,
Edrom
bevtech
800
800
Posts: 2168
Joined: 2005-08-03 14:07
Location: Pennsylvania, United States

Post by bevtech »

oh so the pc will be on the same network and the same router a Netgear WGR614.

Boy are you in luck today. I used to have one and know how to program them..

The UltraVNC server can bind to all nics in your pc. So your PC called
"kiosk" well need to run ultravnc server. You can reserve the IP under a WGR614 so that the pcs will always have the same IP.

Then you can forward the ports you need to the internal LAN IP's
Bevtech

Windows XP Home, Pro SP2, Windows 2003 SBS server SP2(EN), Windows Media Center Editon 2005,Windows Vista Home Prem.,Fedora Core 6,Win9X, PChelpware Rel 1.0,
UVNC V 1.0.8.2

User not developer..;)
Edrom
Posts: 4
Joined: 2005-10-15 23:44

computer name v. MAC address

Post by Edrom »

That's what I expected the router to do, but when it saw the same computer using a different NIC (different MAC address) it assigned it to a different IP.

Or did I miss the point. I gotta admit that the Netgear has a lot of features & options, and there's often more than one way to do a thing.

Ok, I didn't bother to delete the above.. But I decided to re-read your reply to see if I missed anything, and I see that I did.

So it is up to the SERVER (in this case, UltraVNC) to BIND to EVERY NIC so that... so that... Ok, give me credit for getting it this far.

Is there anything special that I need to do with UltraVNC? Or just have the two "rules" (or whatever they're called) in the router, the one which reserved the IP so that it doesn't change and the port forward definition?

Thanks,
Edrom
bevtech
800
800
Posts: 2168
Joined: 2005-08-03 14:07
Location: Pennsylvania, United States

Post by bevtech »

I would set up two different ports like 5905 and 5910 in the router{Netgear} forward one to your LAN and the other port to your WLAN. That way you have both covered. You really shouldn't have to do that but it makes it easier. I dont think a netgear will let you forward one port to two IP's.

For example:

Lets say the router WAN IP is 10.0.0.1
and your LAN is 192.168.0.1 <--- Gateway (netgear)

Latop Wired 192.168.0.4
Laptop Wireless 192.168.0.5

If you go under the LAN setup (dhcp you can find Ip reservation)
Bind your mac to each ip

That way they will not change:D

Then goto the port forwarding

Wan Port 5905 to 192.168.0.4
Wan Port 5910 to 192.168.0.5

As long as that VNC sever is installed as a service and is automatic mode
And you setup the Classic VNC or mslogon settings.


Then your Vncviewer command line would be something like this

C:\program files\UltraVNC\vncviewer.exe {your netgear router Ip or DYNDNS host name}:: 5905 <---- for the one nic

C:\program files\UltraVNC\vncviewer.exe {your netgear router Ip or DYNDNS host name}:: 5910 <---- for the second nic

<BE SURE NOT TO FORGET THE :: right after the IP >

I think really should do it. To give you a basic VNC setup. Provided everything is working properly...;)

I hope at least some of the information
will help,
Bevtech

Windows XP Home, Pro SP2, Windows 2003 SBS server SP2(EN), Windows Media Center Editon 2005,Windows Vista Home Prem.,Fedora Core 6,Win9X, PChelpware Rel 1.0,
UVNC V 1.0.8.2

User not developer..;)
Post Reply