Industry guru Dave Taylor offers tech support on technical and business topics, including iPhone, iPod, Microsoft Windows, Sony PSP, cellphones, online advertising, CSS, Web design, business, Unix, Linux, SEO, Mac OS X, and shell script programming.     


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.


More Useful Unix and Linux Help Articles:
✔   Copy and Paste from the Mac OS X Command Line?
I am constantly running commands in Terminal.app on my MacBook and then copying and pasting the results into email messages or documents. Yes,...
✔   Shell script to convert lowercase to title case?
As part of a project I'm working on, I find myself deep in a Linux shell script, needing to have a subroutine that...
✔   Can I script renaming files based on an XML data map?
I have a folder full of files which are named with four digits and a file extension e.g. 0312.file and an XML-file describing...
✔   Test for valid numbers in a Bash shell script?
In a different discussion on this site [see Redirecting input in a shell script] a visitor commented that "I was too busy trying...
✔   Review: iSSH for the iPad/iPhone
If you're running an online business like I am, there are times when you need to connect and log in to the server...

Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
    Enter your name: and your email addr:  




Categorized: Unix and Linux Help   (Article 6760, Written by )
Tagged: networking, ubuntu, virtual private networks, vnc
Previous: How do I get hearts in my MySpace profile name?
Next: What is Amazon aStore?




Reader Comments To Date:

Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you, Dave, for all your helpful information by buying you a cup of coffee!
Rather amazingly, there are no comments on this article yet.

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











I will never send you any unsolicited email. Ever.






Check This Out Too...

 
Look for Answers
Need Help? Ask Dave Taylor!
Powered By
Linux Journal: Free Issue!


Follow Me on Pinterest

Find Me on Google+
ADT on G+
© 2002 - 2013 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. Further, 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. My lawyer says "Thanks".
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.