VNC behind Firewall or Router

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.

VNC How to access behind Router Firewall

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.

vnc port forwarding

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.

vnc repeater

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 Repeater Autoconnect Support
MobileVNC, Windows CE and Windows Embedded Compact VNC Server also supports the automatic reconnect to listening VNC viewers or to VNC Repeaters.


296 comments

  • ✅ Despite the fact that new online casinos are launched several times a month, ultimately only a small fraction of the huge number of playgrounds deserve the attention of gamers. For a long time, gambling operators can work hard to create one or another gambling club, which aims to enter the TOP 10 online casino, and most importantly, become a favorite of the audience.

  • Аналитические статьи об онлайн казино акциях и бонусах казино, игровых автоматах, играх и слотах представленные на различных страницах нашего сайта, дают возможность ознакомиться с достоверными и непредубежденными данными о многих игорных клубах функционирующих в интернете. Невзирая на то обстоятельство, что наш веб портал опосредованно работает с отдельными заведениями, мы независимы от них и они никоим образом не могут повлиять на беспристрастность наших аналитических обзоров. Данное обстоятельство говорит о возможности предоставления исключительно правдивой информации, без искажения реальных фактов и которое бесспорно выделяет нас из когорты остальных веб-ресурсов составляющих обзоры об игорных онлайн проектах. casino, online casino, casino bonuses, casino games, online slots, slot machines, gambling, gaming, poker, sports betting, bookmakers, Online Casino Real Money, New Online Casino, Live Casino, best online casino, no deposit casino, blackjack, entertainment, top rated online casinos, jackpot, casinos

  • Сhirie auto și arenda mașini. Închirieri mașini de lux – luxcar.md în Chișinău, Moldova pentru cei care prețuiesc confortul și prestigiul. Oferim mașini cu și fără șofer și asigurăm și transferuri în toată Moldova. Flota noastră conține doar cele mai exclusiviste modele, astfel încât să vă puteți bucura de călătoria la cel mai înalt nivel. Serviciul de închiriere auto este disponibil pe termen lung cu asigurare completă, care vă garantează siguranța și liniștea sufletească. Ne mândrim cu un serviciu de încredere și o abordare individuală a fiecărui client, oferind cea mai bună experiență de închiriere de mașini în Chișinău.

  • Oferim servicii de deschidere rapidă și fiabilă a mașinilor în Chișinău și Moldova. Dacă ați încuiat accidental cheile în interiorul mașinii sau ați întâmpinat o problemă cu ușile încuiate, tehnicianul nostru cu experiență va ajunge prompt la fața locului și vă va ajuta. Vă garantăm că mașina va fi deschisă fără nicio deteriorare. Nu trebuie să așteptați mult – specialistul nostru va sosi imediat după apel. Oferim servicii de incredere pentru deschiderea autoturismelor de orice marca si model in Chisinau, asigurand calitatea si siguranta lucrarii.

  • Din-lemn.md – ваш надежный поставщик высококачественных изделий из дерева в Молдове. Мы предлагаем широкий ассортимент продукции, включая мебель, декоративные элементы и строительные материалы, изготовленные из натуральной древесины. Наша продукция сочетает в себе традиционные ремесленные техники и современные технологии, обеспечивая долговечность и эстетическую привлекательность. Мы стремимся удовлетворить потребности каждого клиента, предоставляя индивидуальные решения и гарантируя высокое качество по доступным ценам.

  • Аренда и прокат авто. Avtoprokat-Moldova.com – это профессиональная компания по аренде автомобилей в Кишиневе, Молдове, предлагающая широкий выбор транспортных средств для любых нужд – от компактных авто до вместительных внедорожников. Мы предоставляем клиентам гибкие условия аренды, прозрачные тарифы и быстрое оформление бронирования. Все автомобили проходят регулярные проверки для обеспечения вашей безопасности и комфорта на дорогах. Независимо от цели вашей поездки, с Avtoprokat-Moldova.com вы получаете качественное обслуживание и доступные цены.

  • Сhirie auto și arenda mașini. Chirie-Auto-Chisinau.md este partenerul dvs. de încredere pentru închirieri auto în Chișinău și în toată Moldova. Oferim o gamă variată de mașini, de la modele economice la clase premium, pentru a satisface orice nevoie a clienților. Rezervarea online este simplă, iar condițiile flexibile economisesc timp, oferind călătorii plăcute. Toate mașinile noastre sunt verificate regulat pentru a asigura siguranța și confortul dvs. Cu noi, beneficiați de servicii de calitate, prețuri accesibile și abordare personalizată.

  • Сhirie auto și arenda mașini. Top-Rent.md este o companie de închirieri auto de încredere în Chișinău, Moldova, oferind o gamă largă de mașini moderne pentru orice ocazie – de la călătorii de afaceri la excursii în familie. Ne mândrim cu un nivel ridicat de servicii și prețuri competitive. Rezervările se fac rapid, fără comisioane ascunse sau condiții complicate. Fiecare mașină trece prin revizii tehnice regulate pentru siguranța dumneavoastră. Cu Top-Rent.md, veți avea parte de confort și liniște în călătoriile prin Moldova.

  • Сhirie auto și arenda mașini. Easy-Rent.md este o companie de top în domeniul închirierii auto din Chișinău, Moldova, oferind clienților o gamă largă de mașini moderne, confortabile și sigure la prețuri accesibile. Fie că planificați o călătorie de afaceri, o vacanță sau doriți să închiriați o mașină pentru weekend, Easy-Rent.md vă oferă condiții optime și servicii de înaltă calitate. Asigurăm rezervări simple, condiții transparente și o abordare personalizată pentru a vă face călătoriile cât mai plăcute.

  • Great post! Thank you for sharing this information. Bamboo is an experienced digital marketing and SEO agency in Moldova, Chisinau, specializing in comprehensive online promotion solutions. We offer search engine optimization (SEO), content marketing, website development and promotion, as well as social media management for businesses of all sizes. Our team helps increase your brand’s visibility in search engines, attract targeted clients, and boost conversions for sustainable online business growth.

  • I’m no longer certain the place you’re getting your info, but great topic. I must spend a while learning much more or working out more. Thank you for fantastic information I was looking for this information for my mission.

  • We are a group of volunteers and opening a new scheme in our community. Your web site offered us with valuable info to work on. You’ve done an impressive job and our whole community will be thankful to you.

  • You actually make it seem so easy with your presentation but I find this topic to be actually something that I think I would never understand. It seems too complex and very broad for me. I am looking forward for your next post, I’ll try to get the hang of it!

  • Definitely believe that which you stated. Your favorite justification seemed to be on the internet the simplest thing to be aware of. I say to you, I certainly get irked while people consider worries that they just do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side-effects , people can take a signal. Will probably be back to get more. Thanks

  • I am extremely impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you modify it yourself? Either way keep up the excellent quality writing, it is rare to see a great blog like this one nowadays.

  • Good day very cool website!! Man .. Excellent .. Amazing .. I will bookmark your site and take the feeds additionally? I’m satisfied to seek out a lot of useful info right here in the put up, we need develop extra strategies in this regard, thanks for sharing. . . . . .

  • I absolutely love your blog and find the majority of your post’s to be what precisely I’m looking for. can you offer guest writers to write content in your case? I wouldn’t mind writing a post or elaborating on some of the subjects you write regarding here. Again, awesome blog!

  • I do not know if it’s just me or if everyone else encountering problems with your site. It appears as though some of the text on your posts are running off the screen. Can someone else please provide feedback and let me know if this is happening to them as well? This might be a issue with my web browser because I’ve had this happen before. Many thanks

  • Thanks on your marvelous posting! I quite enjoyed reading it, you are a great author.I will ensure that I bookmark your blog and definitely will come back later in life. I want to encourage one to continue your great posts, have a nice weekend!

  • Wow that was unusual. I just wrote an very long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Anyway, just wanted to say superb blog!

  • Hello there I am so delighted I found your web site, I really found you by mistake, while I was searching on Bing for something else, Nonetheless I am here now and would just like to say cheers for a incredible post and a all round enjoyable blog (I also love the theme/design), I don’t have time to browse it all at the moment but I have book-marked it and also added your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the excellent b.

  • Aw, this was an exceptionally nice post. Taking a few minutes and actual effort to make a good article… but what can I say… I procrastinate a whole lot and don’t seem to get anything done.

  • It is perfect time to make some plans for the future and it’s time to be happy. I’ve read this post and if I could I want to recommend you some interesting issues or advice. Maybe you can write subsequent articles relating to this article. I desire to read even more things about it!

  • Good post. I learn something new and challenging on websites I stumbleupon every day. It will always be exciting to read articles from other authors and practice a little something from their websites.

  • I was curious if you ever thought of changing the page layout of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or 2 images. Maybe you could space it out better?

  • I do trust all the ideas you’ve offered in your post. They’re really convincing and can certainly work. Still, the posts are very brief for newbies. Could you please extend them a bit from next time? Thanks for the post.

Leave a Reply

Your email address will not be published. Required fields are marked *