LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-21-2012, 09:45 AM   #1
earthw0rmjim
Member
 
Registered: Sep 2011
Distribution: Debian testing
Posts: 62

Rep: Reputation: 12
Wake on LAN doesn't work over WAN


Hey!

I'm trying to setup WOL on my PC. It works fine through LAN from my notebook using the broadcast address.
E.g.:
Code:
# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:01:02:03:04:05  
          inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0
Code:
wakeonlan -i 192.168.1.255 00:01:02:03:04:05
The problem is if i'm trying this over WAN using my global IP address, it doesn't work.
Portforwarded to the local IP (192.168.1.101), didn't work.
I thought maybe i should portforward to the broadcast address, but the router doesn't allow forward to x.x.x.255, only x.x.x.254.
What should i do here?

I'd appreciate any advice!
Thanks in advance!

EDIT: Assigned the local IP to the PC's MAC address and portforwarded to the local IP, now it works most of the time. It's pretty unreliable tho, sometimes it just doesn't wake up, i have to send several packages.

Last edited by earthw0rmjim; 07-21-2012 at 11:12 AM.
 
Old 07-21-2012, 12:32 PM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
If I may suggest something you can try (I doesn't work for me neither, but it improved the number of tries)
is to set in your computer's BIOS the Standby mode to S1 (the link has a nice explanation about different modes), but it's not 100% sure (as usually with computers there is nothing 100% )

good luck
 
Old 07-21-2012, 05:42 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,551

Rep: Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301
Generally private IP ranges are on the web but the actual route to any host is almost impossible to predict. I am surprised you got it to work once.
 
Old 07-22-2012, 03:13 AM   #4
earthw0rmjim
Member
 
Registered: Sep 2011
Distribution: Debian testing
Posts: 62

Original Poster
Rep: Reputation: 12
I think this is a good explanation:
http://www.dd-wrt.com/wiki/index.php/WOL
 
Old 07-22-2012, 01:03 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,551

Rep: Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301Reputation: 3301
That example is a public ip.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Wake on Lan doesn't work after Linux shutdown allanwiese Linux - General 8 12-30-2010 09:33 AM
How to get wake on lan to work with Ubuntu 9.04 darthfoolish Linux - Networking 1 10-01-2009 01:47 PM
NIC doesn't support certain wake on LAN modes bobwall Linux - Hardware 0 09-21-2008 05:06 AM
10.2 upgrade; lan works, wan doesn't Nd4Spd Slackware - Installation 18 11-20-2005 10:00 AM
LAN works, WAN doesn't ? BrianK Linux - Networking 2 06-16-2003 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration