Using VNC behind a firewall or a NAT router without public IP available can be a huge challenge for remote control and maintenance tasks. As local networks operate on their own network address space, these IP network addresses are not known to the public Internet and therefore not directly accessible from outside the private network of your company. Typically, companies access and route the Internet connection for their private networks over a single Router/Gateway and Firewall which receives a permanent or a dynamically changing public IP address. This means that a PC with a private network address within your company is able to access any public IP address within the Internet by routing over your companies public IP Gateway/Router, but the other way its not possible to directly access the private IP address within your companies network.
Generally its impossible to directly access a VNC server running behind a Firewall or a NAT Router, but there are several technical possibilities to overcome this challenge.
Port Forwarding
A common method that is used for many different remote access purposes, such as accessing a private address of your webcam from all over the world, is to configure port forwarding on your router/gateway. Port forwarding allows remote computers (for example, computers on the Internet) to connect to a specific computer or service within a private local-area network (LAN). In a typical private network, computers obtain Internet access through a DSL or cable modem connected to a router or network address translator (NAT/NAPT). Hosts on the private network are connected to an Ethernet switch or communicate via a wireless LAN. The NAT device’s external interface is configured with a public IP address. The computers behind the router, on the other hand, are invisible to hosts on the Internet as they each communicate only with a private IP address.
When configuring port forwarding, the network administrator sets aside one port number on the gateway for the exclusive use of communicating with a service in the private network, located on a specific host. External hosts must know this port number and the address of the gateway to communicate with the network-internal service. Often, the port numbers of well-known Internet services, such as port number 80 for web services (HTTP), are used in port forwarding, so that common Internet services may be implemented on hosts within private networks.
Listening VNC Client with public IP
By triggering the connection from inside a private network it is possible to establish a connection to a waiting (listening mode) vnc viewer. With UltraVNC for example you can start the viewer in listening mode by typing ultravnc.exe -listen. The constraint for accessing a listening vnc viewer is of course that the network address of the viewer can be accessed by the server. So the vnc viewer has to run on a public IP address.
Public VNC Repeater:
The same way as Skype or TeamViewer are operating is also possible in combination with VNC. Skype and TeamViewer are routing both connections over a central, globally available server with public IP address. So both sides, the server as well as the client can operate on private IP addresses and connect to each other by using the central server. Within the VNC world this concept/software is called a VNC repeater server. VNC repeater servers are responsible for accepting both connections from VNC clients as well as from VNC servers. Typically the VNC repeater accepts VNC clients/viewers on port 5900 and connections coming from your VNC server on port 5500. Both sides have to agree on a common connection ID in order to enable the VNC repeater to distinguise which viewer connection should be connected with which server connection.
You can find free implementations for VNC repeater software from UltraVNC and another implementation on Google Code.
If you are operating a remote maintenance service its strongly advised to setup your own VNC repeater on your own publicly accessable server!
There are also some free VNC repeaters running online, where you can start to test out such a scenario without setting up your own VNC repeater: http://repeaters.ultravnc.info/
MobileVNC, Windows CE and Windows Embedded Compact VNC Server also supports the automatic reconnect to listening VNC viewers or to VNC Repeaters.
Just wish to say your article is as amazing. The clarity in your post is just spectacular and i could assume you are an expert on this subject. Well with your permission allow me to grab your feed to keep up to date with forthcoming post. Thanks a million and please keep up the gratifying work.
I’m now not sure the place you’re getting your information, but great topic. I must spend some time studying much more or understanding more. Thank you for wonderful information I was on the lookout for this information for my mission.
It’s actually a nice and useful piece of information. I am happy that you just shared this helpful information with us. Please stay us up to date like this. Thanks for sharing.
Hmm is anyone else having problems with the pictures on this blog loading? I’m trying to find out if its a problem on my end or if it’s the blog. Any responses would be greatly appreciated.
Highly descriptive post, I loved that bit. Will there be a part 2?
Wow, this article is fastidious, my younger sister is analyzing these things, thus I am going to tell her.
What’s up to every body, it’s my first pay a quick visit of this blog; this website contains amazing and really good information designed for visitors.
Pretty! This was a really wonderful article. Thanks for supplying this info.
I think this is among the most significant information for me. And i am glad reading your article. But wanna remark on few general things, The website style is perfect, the articles is really nice : D. Good job, cheers
Have you ever thought about publishing an e-book or guest authoring on other sites? I have a blog based upon on the same subjects you discuss and would really like to have you share some stories/information. I know my subscribers would appreciate your work. If you are even remotely interested, feel free to shoot me an e mail.
Good post. I learn something new and challenging on sites I stumbleupon every day. It will always be exciting to read through articles from other authors and practice something from other websites.
Hello there! Quick question that’s entirely off topic. Do you know how to make your site mobile friendly? My weblog looks weird when viewing from my iphone. I’m trying to find a theme or plugin that might be able to fix this problem. If you have any recommendations, please share. Thank you!
Wow that was unusual. I just wrote an extremely long comment but after I clicked submit my comment didn’t appear. Grrrr… well I’m not writing all that over again. Anyhow, just wanted to say wonderful blog!
Great article! We will be linking to this particularly great content on our site. Keep up the good writing.
Hi, Neat post. There is an issue along with your site in web explorer, may test this? IE nonetheless is the market leader and a large part of other folks will omit your magnificent writing due to this problem.
whoah this blog is wonderful i really like reading your articles. Keep up the great work! You know, a lot of persons are searching around for this info, you could aid them greatly.
Fastidious answer back in return of this difficulty with firm arguments and explaining all on the topic of that.
Great post however I was wondering if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit more. Thank you!
Its such as you learn my thoughts! You appear to grasp a lot approximately this, like you wrote the book in it or something. I feel that you could do with some percent to drive the message home a little bit, but other than that, that is magnificent blog. A great read. I’ll definitely be back.
Great delivery. Sound arguments. Keep up the amazing effort.
Wow, that’s what I was exploring for, what a stuff! existing here at this web site, thanks admin of this web site.
Hello my loved one! I want to say that this post is awesome, nice written and include almost all significant infos. I would like to see more posts like this .
Great information. Lucky me I ran across your website by accident (stumbleupon). I have bookmarked it for later!
I’m really enjoying the design and layout of your website. It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a designer to create your theme? Fantastic work!
My relatives always say that I am killing my time here at web, except I know I am getting know-how everyday by reading thes fastidious articles or reviews.
Normally I don’t learn post on blogs, but I wish to say that this write-up very forced me to try and do so! Your writing taste has been amazed me. Thank you, very nice post.
Hmm is anyone else experiencing problems with the images on this blog loading? I’m trying to determine if its a problem on my end or if it’s the blog. Any responses would be greatly appreciated.
I’m gone to convey my little brother, that he should also pay a quick visit this website on regular basis to get updated from most up-to-date news update.
My brother recommended I would possibly like this website. He was once totally right. This put up truly made my day. You cann’t believe simply how so much time I had spent for this information! Thanks!
Hi there, i read your blog from time to time and i own a similar one and i was just curious if you get a lot of spam feedback? If so how do you protect against it, any plugin or anything you can recommend? I get so much lately it’s driving me crazy so any help is very much appreciated.
Do you mind if I quote a few of your posts as long as I provide credit and sources back to your webpage? My blog site is in the very same niche as yours and my visitors would genuinely benefit from some of the information you provide here. Please let me know if this okay with you. Many thanks!
I was pretty pleased to discover this site. I wanted to thank you for ones time due to this wonderful read!! I definitely really liked every part of it and I have you book marked to see new information on your web site.
Aw, this was an exceptionally nice post. Taking a few minutes and actual effort to make a great article… but what can I say… I hesitate a whole lot and don’t manage to get nearly anything done.