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.
Hello there! Quick question that’s completely off topic. Do you know how to make your site mobile friendly? My web site looks weird when viewing from my iphone 4. I’m trying to find a template or plugin that might be able to resolve this problem. If you have any suggestions, please share. With thanks!
Hi, Neat post. There is a problem together with your website in web explorer, could check this? IE still is the market chief and a huge portion of other folks will miss your wonderful writing due to this problem.
Great blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple adjustements would really make my blog jump out. Please let me know where you got your theme. With thanks
Cool blog! Is your theme custom made or did you download it from somewhere? A design like yours with a few simple adjustements would really make my blog stand out. Please let me know where you got your theme. Appreciate it
Does your website have a contact page? I’m having a tough time locating it but, I’d like to shoot you an e-mail. I’ve got some ideas for your blog you might be interested in hearing. Either way, great blog and I look forward to seeing it expand over time.
Thanks a lot for sharing this with all of us you actually know what you’re talking about! Bookmarked. Kindly additionally consult with my web site =). We could have a hyperlink exchange agreement between us
You are so awesome! I do not think I’ve read through something like that before. So nice to find another person with some unique thoughts on this subject matter. Seriously.. thank you for starting this up. This website is something that’s needed on the web, someone with a bit of originality!
It’s in reality a great and useful piece of information. I’m satisfied that you simply shared this useful info with us. Please keep us up to date like this. Thanks for sharing.
Thanks for every other informative site. Where else may I get that kind of information written in such a perfect manner? I have a project that I am just now working on, and I have been at the look out for such info.
I have read several good stuff here. Definitely price bookmarking for revisiting. I surprise how so much effort you set to make such a magnificent informative site.
My brother suggested I may like this web site. He was once entirely right. This put up actually made my day. You can not imagine simply how a lot time I had spent for this information! Thanks!
Can I just say what a comfort to find somebody who truly knows what they are talking about on the internet. You actually understand how to bring a problem to light and make it important. More people have to check this out and understand this side of the story. It’s surprising you’re not more popular because you most certainly possess the gift.
Good response in return of this matter with real arguments and telling all on the topic of that.
Greetings! Very useful advice in this particular article! It’s the little changes that produce the greatest changes. Thanks a lot for sharing!
Howdy! This post couldn’t be written any better! Reading this post reminds me of my previous room mate! He always kept chatting about this. I will forward this post to him. Pretty sure he will have a good read. Many thanks for sharing!
Hey I am so glad I found your weblog, I really found you by mistake, while I was researching on Google for something else, Anyways I am here now and would just like to say thanks for a incredible post and a all round entertaining blog (I also love the theme/design), I don’t have time to read it all at the minute but I have bookmarked it and also included your RSS feeds, so when I have time I will be back to read more, Please do keep up the great jo.
Quality content is the crucial to invite the people to pay a quick visit the web site, that’s what this site is providing.
It’s the best time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I desire to suggest you some interesting things or suggestions. Maybe you can write next articles referring to this article. I want to read even more things about it!
Hi, its nice paragraph concerning media print, we all understand media is a impressive source of data.
It’s remarkable in support of me to have a web page, which is good in support of my experience. thanks admin
Asking questions are truly good thing if you are not understanding anything entirely, but this post offers nice understanding even.
Great delivery. Sound arguments. Keep up the good spirit.
Can you tell us more about this? I’d want to find out more details.
Excellent post however , I was wanting to know if you could write a litte more on this subject? I’d be very grateful if you could elaborate a little bit more. Cheers!
Excellent, what a website it is! This web site gives valuable information to us, keep it up.
Highly descriptive post, I loved that a lot. Will there be a part 2?
Hurrah! At last I got a website from where I can in fact obtain helpful data concerning my study and knowledge.
Thanks for sharing such a pleasant opinion, paragraph is nice, thats why i have read it entirely
It’s very easy to find out any topic on net as compared to books, as I found this piece of writing at this web site.
Hi, i feel that i saw you visited my site thus i got here to go back the choose?.I am trying to to find issues to improve my website!I suppose its adequate to make use of a few of your concepts!!
I think that everything typed made a great deal of sense. However, think about this, suppose you were to create a killer title? I ain’t suggesting your information is not solid, but suppose you added a headline to maybe get folk’s attention? I mean %BLOG_TITLE% is kinda boring. You should peek at Yahoo’s front page and watch how they create article titles to grab viewers to click. You might add a related video or a related pic or two to get people excited about what you’ve got to say. Just my opinion, it would bring your website a little livelier.
Hello everyone, it’s my first pay a quick visit at this site, and article is in fact fruitful designed for me, keep up posting such articles or reviews.
Thanks for the auspicious writeup. It actually was once a enjoyment account it. Look advanced to more introduced agreeable from you! However, how can we be in contact?
I’ve read several just right stuff here. Certainly worth bookmarking for revisiting. I surprise how a lot attempt you put to create the sort of wonderful informative site.
constantly i used to read smaller articles or reviews which also clear their motive, and that is also happening with this paragraph which I am reading here.
Hey there, I think your website might be having browser compatibility issues. When I look at your blog in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, very good blog!
Hi there, I enjoy reading through your article post. I like to write a little comment to support you.
I think the admin of this site is really working hard in favor of his website, as here every material is quality based stuff.
Hi, i think that i saw you visited my weblog thus i came to “return the favor”.I am attempting to find things to improve my site!I suppose its ok to use a few of your ideas!!
I like what you guys tend to be up too. Such clever work and coverage! Keep up the fantastic works guys I’ve added you guys to my personal blogroll.
You really make it appear really easy along with your presentation but I to find this matter to be actually one thing that I believe I would by no means understand. It kind of feels too complex and very broad for me. I am taking a look forward to your subsequent put up, I’ll attempt to get the hang of it!
I do not even know the way I ended up right here, however I thought this put up was good. I do not recognise who you might be but certainly you are going to a famous blogger when you aren’t already. Cheers!
Piece of writing writing is also a excitement, if you be familiar with after that you can write if not it is difficult to write.
Hello, after reading this amazing paragraph i am too happy to share my know-how here with colleagues.
Wonderful article! That is the type of information that are supposed to be shared across the net. Shame on Google for now not positioning this publish upper! Come on over and visit my web site . Thank you =)
Wow! This blog looks just like my old one! It’s on a completely different subject but it has pretty much the same page layout and design. Outstanding choice of colors!
Heya i am for the first time here. I found this board and I find It really useful & it helped me out much. I hope to give something back and help others like you aided me.
Hello there! This post could not be written much better! Going through this post reminds me of my previous roommate! He constantly kept talking about this. I most certainly will send this article to him. Pretty sure he will have a great read. Thank you for sharing!
When someone writes an post he/she keeps the thought of a user in his/her brain that how a user can be aware of it. Thus that’s why this post is outstdanding. Thanks!
Hi! Do you know if they make any plugins to protect against hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any tips?