Using vnc client & server from private LAN across internet
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Using vnc client & server from private LAN across internet
Hi!
Like lots of people I am connected to the internet via broadband. My broadband supplier gives me an IP address which in my case is an IP for private network i.e. 10.x.x.x. I want to use the vnc client to connect to a vnc server on another PC across the internet which is also configured the same way i.e. it is also on a private network with an IP 10.x.x.x.
I can think of another complication - what if both PCs are connected in a home LAN environment and the routers assign another private IP such as 192.168.x.x?
Can this be done? If so how?
This might seem a stupid question, but I'd appreciate some help/information on this.
You would have to forward the applicable ports on the server's border firewall (that is, the firewall between the public IP and the private IP of the server you want to connect to).
I don't think there is any chance of my being able to get that done. I have no access to the gateway machine. It belongs to the Broadband provider and they are not about to make an exception just for me.
Afaik, vnc client & server would not work in the scenario you have suggested us to ask for. Maybe some other alternate could possibly give you a way out/ i am not sure though.
the computer on the server side has to determine which ports are open and listen on an available port - surely, for the price you are paying for broadband, the isp must make some ports available for you to use.
the default listening port for vnc is 5900; if the isp doesn't make this available, then the server must be configured to listen on a port that is.
a work-around to this, if the isp isn't cooperative, is to establish a peer to peer vpn tunnel, then use the tunnel to connect vnc.
or, accomplish the same using ssh.
hope this gets you pointed in the right direction....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.