Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Networking > sleep preventing telnet?

sleep preventing telnet?
Thread Tools
Mac Enthusiast
Join Date: Nov 2001
Location: Washington, DC 20009
Status: Offline
Reply With Quote
Jun 3, 2003, 09:45 AM
 
I setup an account through dyndns.org so that I could access my powerbook from work even though I have a dynamic IP address. I downloaded one of the Mac clients that should be auto-updating the dns (??). I was able to connect to it last night, but now that my computer has been asleep for several hours, I can't login any longer.

My question is: Will my Powerbook awake from sleep mode when a telnet/ftp/web/etc request comes in or do I have to keep the system awake in order to maintain remote network availablity? What options do I have?
Just my $.02 :-)
Ti Powerbook 1Ghz w/ Superdrive ......and lovin' it! :)
     
milf  (op)
Mac Enthusiast
Join Date: Nov 2001
Location: Washington, DC 20009
Status: Offline
Reply With Quote
Jun 3, 2003, 09:50 AM
 
Actually, I'm not sure if the system being asleep is the problem. Here is the error I get when I attempt to connect to my powerbook from work: "192.168.0.2: connect: No route to host". I've only successfully been able to connect from a computer behind the same router; this is my first attempt from an outside machine.

I know I've had issues with my setup before where I was able to stream music to other systems on my internal network, but others attempting to connect from outside were denied. My knowledge of networking and routers is fairly limited, so can anyone help me get this setup correctly? TIA.


[edit]200th post. Woot![/edit]
Just my $.02 :-)
Ti Powerbook 1Ghz w/ Superdrive ......and lovin' it! :)
     
Senior User
Join Date: Apr 2002
Status: Offline
Reply With Quote
Jun 3, 2003, 12:34 PM
 
Originally posted by milf:
Actually, I'm not sure if the system being asleep is the problem. Here is the error I get when I attempt to connect to my powerbook from work: "192.168.0.2: connect: No route to host".
You cannot connect to that other computer from outside your LAN by using the 192.168.0.2 IP address. On your home computer, you will need to use something like DNSupdate (search at Versiontracker) in order to keep your IP address up-to-date with DynDNS and if you are using a home router, be sure that the appropriate ports for whatever services you want to use are forwarded to your computer's local IP address. In any case, network services such as ftp/web/telnet will not wake a sleeping computer.
     
Admin Emeritus
Join Date: Oct 1999
Location: Zurich, Switzerland
Status: Offline
Reply With Quote
Jun 4, 2003, 02:14 AM
 
When the computer is asleep, almost all of the hardware is turned off -- including the ethernet interface*.

tooki


* It does have a wake-on-LAN function (called "Wake for network administrative access" on the Mac), which basically is a special circuit in the ethernet chip that is only smart enough to sense a "trigger" and pass that to the power manager. But only a special wake-up packet can wake it, and that can't be done by Telnet!
     
Forum Regular
Join Date: Mar 2003
Status: Offline
Reply With Quote
Jun 4, 2003, 03:33 PM
 
You've got 2 problems here:

1) Your dyndns is not set up correctly. If it is set to 192.168.0.2, you are setting it to an internal network address. This is why you can only connect from computers behid the router. They go to dyndns and ask "where is BOB.dyndns.org?" and they get "192.168.0.2" which works for them because they are on the internal network. When you try this from work, 192.168.0.2 is in your work's local network, so you are either trying to connect to a non-existent computer, or one that is not set up for telnet, etc.

So, like a previous poster said, you need a dyndns client (https://www.dyndns.org/services/dyndns/clients.html). DNSupdate works the best for me. Now, you have to make sure that the client senses your external address and not your internal one (192.168.0.2). There is an option somewhere for this. Once this is all set up, you should always be able to get to your home computer.

1B) Actually, you also need to make sure that your firewall is open to telnet traffic. You need to open the ports on your firewall/router to route telnet/ssh/ftp,etc to your computer. The instructions vary for this, so post more if you need to do this.

2) The computer will not respond if it is asleep. You need to send a "magic packet" to the computer to activate "wake on LAN". This is tricky. I saw a utility/perl script to do this the other day, but I forget where... I will have to get back to you if I find it.
     
milf  (op)
Mac Enthusiast
Join Date: Nov 2001
Location: Washington, DC 20009
Status: Offline
Reply With Quote
Jun 4, 2003, 04:03 PM
 
I actually got the DNS part working and am able to connect just fine now. I connected this morning when I first got to work with no problems, but trying it now just gives me a blinking cursor. I think it has to do with the system being asleep. I'll search around for info on the 'wake on LAN' feature. Thanks.
Just my $.02 :-)
Ti Powerbook 1Ghz w/ Superdrive ......and lovin' it! :)
     
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Jun 4, 2003, 06:39 PM
 
Originally posted by milf:
I actually got the DNS part working and am able to connect just fine now. I connected this morning when I first got to work with no problems, but trying it now just gives me a blinking cursor. I think it has to do with the system being asleep. I'll search around for info on the 'wake on LAN' feature. Thanks.
Wake on LAN isn't going to fix your problem.

As its name implies, Wake On LAN will wake the system when a specially-crafted network packet is sent over the local network.

The nature of these packets is such that they can not be sent remotely (e.g. over the internet), only from another mahcine in the same local network as the machine you're trying to wake - think of a system in an office or a school being woken by a central backup server so that overnight backups can run.

You can not wake a machine using this technique from a remote machine.

Your only other solutions are either to leave the machine on all the time (not asleep) or to get a remote power circuit that can cut the power supply to the machine via telephone or network access. When the power is restored the Mac automatically boots. Sophisticated Circuits ( http://www.sophisticatedcircuits.com/ ) make one such device, but there are others around, too.
Gods don't kill people - people with Gods kill people.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:02 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2