Industry guru Dave Taylor answers free tech support questions about a wide variety of business and technical topics, including blogging, Google AdSense, MySpace, Sony PSP, Apple iPod, Mp3 players, management, Linux, SEO, Mac OS X, Facebook, Twitter, LinkedIn and Microsoft Windows.

Can I change VNC on Ubuntu to use a different port?

I have 2 Ubuntu Dapper machines at home. One is going to a college dorm with may daughter in a couple weeks. I can get her desktop on my computer through VNC here at home. It's using port 5900.

Is there a way to know whether I'll be able to reach her machine through this port when she's at college? I have no idea how they manage their network - nor do I care to ask! On a quick look, I could not find how to get her VNC server to listen to a different port - or maybe this is done through ssh?


Dave's Answer:

First, look here: VNC FAQ: Ports. Since this question is a bit too technical for me, I asked a programmer friend of mine, Phil Hord, for help, and here's what he suggests:

The university may block all incoming services. If so, it doesn't matter what port you put it on; you won't be able to reach it unless she initiates the connection. You could probably have her PC connect to your PC all the time with ssh enabling port-forwarding. Since you can presumably control the firewall on your end, you can open up the requisite port for her to connect to and then configure the software to
allow it all to work.

For my configuration to work, I wound up creating a VPN to link my home and office PC's across several NATs and a vigorous corporate firewall. You can do something like that, but maybe you won't have to jump through as many hoops as I did. (Here's how:
My VPN traverses three firewalls)

You can use SSH to open up ports through whatever firewall she faces. You'll need an SSH server running on your end. She'll need to run ssh on her end. You might even be able to make it "always-on". I haven't experimented much with ssh clients on Linux. But it should be pretty easy.

Finally, if she ends up running Windows, she'll need to check out Hamachi or LogMeIn and if she's on a Mac system, the VNC package of choice is Chicken of the VNC.



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Simpy.

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments
Rather amazingly, there are no comments on this article yet.

I have a lot to say, but ...
Starbucks coffee cup I have a lot to say, and questions of my own for that matter, but most of all I'd like to say thank you for all your efforts on this Web site by buying you a chai!

I do have a comment, now that you mention it!









Remember personal info?


Please note that I will never send you any unsolicited commercial email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.









Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.


Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Join the List!
Join my author info mailing list, where you'll learn about my upcoming books, speaking gigs, and more!


Book Links
© 2002 - 2008 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]