Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 2, 2010, 05:40 AM   #1
arnoz
macrumors regular
 
Join Date: Jun 2007
Location: Belgium
Send a message via AIM to arnoz
Remote desktop - 2 macs in LAN

Hi,

I would like to remotely control 2 macs (from the same LAN - home) from the outside (mostly from my office - PC).
  • What do I need to do in system prefs on the Mac to allow remote control?
  • If I understand correctly I need two different ports for remote controlling otherwise my Airport won't "understand" which Mac I want to access. How to do that.
  • Which app would you suggest to use on a PC for remote controlling a Mac
  • How do I access a Mac from outside of my home? I set up a DynDNS account and put the information in my Airport and Mac Sharing prefs. Then what?
  • Does DynDNS work correctly with Airport? I don't understand, my modem is in bridge mode, the Airport connects through it, it has the option of dynamic host (or something similar, forgot the term) configured with my DynDNS account. A few weeks ago if I typed the address I would access the Airport. Now it won't even though I didn't change a thing.

Tanks!
arnoz is offline   0 Reply With Quote
Old Mar 2, 2010, 06:04 AM   #2
r0k
macrumors 68040
 
r0k's Avatar
 
Join Date: Mar 2008
Location: Detroit
Logmein is supposed to work well in this situation. I installed it on my mac and found it created an icon on my status bar. I didn't like that it did this and I decided to uninstall it. Whoa what a pain. It was a real struggle to uninstall and I seem to remember a kernel panic or 2 when I had it installed. I don't plan to try it again myself, but others have said it works well for them and they can control their mac from a pc or even from a smartphone. I didn't like Logmein but YMMV.

Another option is "back to my mac" using Mobile Me. I can use my Mac from any Apple store. Big whoop. It really should work from any PC because there are millions of pc's versus only thousands of Macs in my area. I'd much rather be able to do it from a web browser but Apple hasn't decided to offer this just yet.

I don't suggest leaving ports for vnc open to the 'net. On OS X, you can set vnc to use a password, in addition to screen sharing which requires a normal apple login. I have viewed my Mac from my iPod Touch using VNC. I just never bothered to do it from the internet. I was never interested in a situation where somebody on the net only has to guess my VNC password to take over my machine. Nope. I don't plan on letting that happen.
__________________
-r0k
Macbook Pro (late 2011) + iPad mini + iPhone5 + (GS4 for work)
Got a scan to ftp scanner? Enable ftpd in Mavericks!
r0k is offline   0 Reply With Quote
Old Mar 2, 2010, 07:07 AM   #3
arnoz
Thread Starter
macrumors regular
 
Join Date: Jun 2007
Location: Belgium
Send a message via AIM to arnoz
I thought of LogMeIn and other apps like this but I don't like to install these kind of apps and it seems I was right

I like BTMM but doesn't work from my office PC.

That's why I am looking for a way to control from my office PC my Macs home.
Waht about the port? Do I have to change something if I have 2 Macs?
arnoz is offline   0 Reply With Quote
Old Mar 2, 2010, 07:27 AM   #4
r0k
macrumors 68040
 
r0k's Avatar
 
Join Date: Mar 2008
Location: Detroit
Quote:
Originally Posted by arnoz View Post
I thought of LogMeIn and other apps like this but I don't like to install these kind of apps and it seems I was right

I like BTMM but doesn't work from my office PC.

That's why I am looking for a way to control from my office PC my Macs home.
Waht about the port? Do I have to change something if I have 2 Macs?
You can set it up to control one mac and then control the second mac by screen sharing from the first mac. Sorry, I don't know the ports as I have never had an interest in opening up vnc to the 'net other than through btmm.

I did find a tutorial that lists what ports to use...
Tightvnc offers a short summary of what ports to set up...
Quote:
For example, to access VNC or TightVNC server running on default ports, a router can be configured such way that TCP connections to ports 5900 and 5800 would be passed to the same ports of a particular machine with a specified private IP address (typically 192.168.x.x).

Here is an example of configuring port forwarding, assuming that TightVNC Server is running on default ports 5900 and 5800, on the machine with IP 192.168.1.100:
Application Start
Port End
Port Protocol IP Address Enable
TightVNC 5900 5900 TCP 192.168.1.100 yes
TightVNC 5800 5800 TCP 192.168.1.100 yes
__________________
-r0k
Macbook Pro (late 2011) + iPad mini + iPhone5 + (GS4 for work)
Got a scan to ftp scanner? Enable ftpd in Mavericks!
r0k is offline   0 Reply With Quote
Old Mar 2, 2010, 08:04 AM   #5
Le Big Mac
macrumors 68020
 
Join Date: Jan 2003
Location: Washington, DC
Quote:
Originally Posted by arnoz View Post
I thought of LogMeIn and other apps like this but I don't like to install these kind of apps and it seems I was right

I like BTMM but doesn't work from my office PC.

That's why I am looking for a way to control from my office PC my Macs home.
Waht about the port? Do I have to change something if I have 2 Macs?
You set up port forwarding on your router, and then you can adjust the port numbers. So Mac 1 is port 5900, Mac 2 is port 5901. I forget all the places you have to make these changes, but I think it's router, your preferences (sharing), and your VNC program.
Le Big Mac is offline   0 Reply With Quote
Old Mar 2, 2010, 02:54 PM   #6
jdechko
macrumors 68040
 
Join Date: Jul 2004
Straight VNC and port forwarding is very unsecure as most personal VNC clients connect without any level of encryption.

It's a little complicated, but possible.

1. Pick a primary mac. This computer needs to be on all the time. Go to Dyndns.com and download the updater for MacOS X. Install this on the primary computer. This will automatically update the IP address with your Dyndns host name.

2. Enable SSH (Secure shell) on the primary mac. Follow the directions here. This will create a secure tunnel between 2 computers.

3. Forward port 22 (the default ssh port) from your router to the primary mac. If you want to be more "secure" you can use a different port, but it's not necessary nor is is necessarily more secure.

4. Set up VNC screen sharing on both macs. You can use Chicken of the VNC or the built in Remote Screen Sharing client (make sure you enable VNC access if you use Remote Screen Sharing). Put your primary mac as 5900 and any other computers as 5901, 5902, etc. Some help

5. Download PortaPuTTY and the TightVNC standalone viewer client. Copy them over to a usb flash drive. They're PORTABLE which means you can use it from any windows computer!!!

6. From an external computer (outside of your home network, or even inside, really), fire up PuTTY.

7. Type your DynDNS host name where it says "Host Name". Port should be 22 or if you've changed it, put that in. Protocol should be SSH.

8. Still in PuTTY, scroll down to "connections>SSH>Tunnels". Source port should be 5900, destination should be either localhost:5900 or 127.0.0.1:5900. Leave the radio options as "Local" and "Auto" and Click the Add button. Repeat for port 5901, but put in the local IP address instead of "localhost" (192.168.1.1:5901).

9. Still in Putty, go back up to the sessions, give the saved sessions a uinque name (Home) and click save. This will save your settings so you don't have to enter these settings every time.

10. If you're a religious kind of guy, say a quick prayer. Press Open.

11. You'll most likely get a popup of some sort asking you to verify the fingerprint. Click the option to add it to the hosts file. You should only get this once. If you get it again (without changing anything) get out of there and cancel any connection.

12. Log in with your (short) user name and password. Congrat's! You've got shell access to your computer!

13. Open up the TightVNC viewer and put in localhost:5900 (or the IP:Port of another computer) and press connect. Input your VNC password if you've got one.

14. ???

15. Profit.

You can also log in from another mac outside of your network by enabling "remote login" on the computer, going to terminal and typing "SSH username@remotehost -L 5900 localhost:5900"

Last edited by jdechko; Mar 2, 2010 at 03:00 PM.
jdechko is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Control iTunes on LAN via Remote App on wifi dec. Apple TV and Home Theater 3 Apr 21, 2014 12:59 PM
Remote Shutdown Macs on LAN with iPhone ramenaddict Mac OS X Server, Xserve, and Networking 7 Nov 1, 2013 09:18 AM
The Limits of the Possible: Remote/Outside LAN Printing with AirPortTC or other? rhyzome Mac Basics and Help 1 Aug 10, 2013 11:21 PM
Remote Desktop on LAN OK, but on Internet ? aerobyravol OS X 12 Dec 27, 2012 07:11 PM
No wake on LAN for Macs? orestes1984 OS X 5 Sep 12, 2012 09:35 PM

Forum Jump

All times are GMT -5. The time now is 11:50 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC