![]() |
2010-01-24
, 16:56
|
|
Posts: 365 |
Thanked: 98 times |
Joined on Nov 2009
|
#12
|
I've used the ssh method with a router capable of wol, that works, but the direct method I havent tried. one way of checking if your network is setup properly is to use something other than the script
for example a wol web page like
http://www.dslreports.com/wakeup
if you don't like giving them your real mac address spoof it first. an alternative is to use a windows program to send it
http://www.depicus.com/wake-on-lan/wake-on-lan-gui.aspx
see if it works. if any one of these methods work over the internet but not the script then we know it's not a network problem or the router destroying the magic packet.
![]() |
2010-01-24
, 17:29
|
Posts: 247 |
Thanked: 91 times |
Joined on Jan 2008
@ London/M4 Corridor
|
#13
|
Has anyone else attempted to use this script over the internet for WoL?
Trying to see if the script broadcasts the packet correctly over the nets.
![]() |
2010-01-24
, 17:40
|
Posts: 840 |
Thanked: 823 times |
Joined on Nov 2009
|
#14
|
![]() |
2010-01-25
, 12:21
|
|
Posts: 365 |
Thanked: 98 times |
Joined on Nov 2009
|
#15
|
The IP address you're using inside your house should be an IP address that isn't routable over the Internet. This is a really good thing, as it makes the Internet more scalable and predictable. So the packets you're sending have to be changed at your firewall from your house's external address to one that would work internally. While most routers are easy to configure to do this for standard TCP connections, special packets like the WOL packets are different. They're also likely to be dropped by ISPs as a "bad thing", much as a postman might refuse to deliver a seethrough plastic bag full of rotted meat. There might be a use for what's inside, but more than likely the person on the other end doesn't want it.
I've used the Linux box running on a PC inside my firewall to originate WOL packets for other things inside the house--but that was after I got "inside" the house by logging on the PC via ssh. If you want to make this more easily accessible and you already have a web server running on the inside, you could set up a web page that runs a WOL command when the page is accessed. You're not opening a new security risk, just a "waste electricity risk".
![]() |
2010-01-25
, 15:57
|
Posts: 840 |
Thanked: 823 times |
Joined on Nov 2009
|
#16
|
Thanks for the suggestion. I figured I'd give a status update with regard to this as I think this is very useful infortmation for a lot of N900 users.
So basically VPN COULD have been a solution had the router in question supported a VPN server (most home routers do not, rather they support a number VPN pass-through protocols). So with this out of the question, I remember that my old router was an old linksys, that I had DD-WRT installed on. This firmware (which is open source, linux based, and awesome) has a built in wol function. So now the goal is to log into the router via the internet and then send the wol command to the comp on the router.
The home network is starting to look like spaghetti. I've got the modem/Nat, going to a d-link router which has all the computer on the network, and then from this router to the linksys one, with only this computer (my vcn server) on it.
Still much rather have a router using 10 watts or less than another computer running full time to power up this nettop, which uses about 7-20 watts.
But seriously, VCN, ssh, WoL, the N900 is all just freakin awesome. I don't think more than 5% of the N900 user base really understand all this phone can do.
2d
local-- --NAT-- --Internet-- --protocol-- --direction-- --Priority-- --timeout--
192.168.1.50:9-- --192.168.0.5:9-- --My_T_mobileIP:18748-- --UDP-- -- In-- --128-- --294
#!/usr/bin/python # Client program from socket import * # Set the socket parameters host = "My_homeIP" port = 9 buf = 1024 addr = (host,port) # Create socket UDPSock = socket(AF_INET,SOCK_DGRAM) def_msg = "===Enter message to send to server==="; print "\n",def_msg # Send messages while (1): data = raw_input('>> ') if not data: break else: if(UDPSock.sendto(data,addr)): print "Sending message '",data,"'....." # Close socket UDPSock.close()
#!/usr/bin/python # Server program from socket import * # Set the socket parameters host = "My_homeIP" port = 9 buf = 1024 addr = (host,port) # Create socket and bind to address UDPSock = socket(AF_INET,SOCK_DGRAM) UDPSock.bind(addr) # Receive messages while 1: data,addr = UDPSock.recvfrom(buf) if not data: print "Client has exited!" break else: print "\nReceived message '", data,"'" # Close socket UDPSock.close()
The Following User Says Thank You to Cue For This Useful Post: | ||
![]() |
2010-02-02
, 13:51
|
|
Posts: 365 |
Thanked: 98 times |
Joined on Nov 2009
|
#17
|
The Following User Says Thank You to 2disbetter For This Useful Post: | ||
![]() |
2010-04-14
, 22:45
|
Posts: 3 |
Thanked: 0 times |
Joined on Apr 2010
|
#18
|
![]() |
2010-04-15
, 02:38
|
Posts: 840 |
Thanked: 823 times |
Joined on Nov 2009
|
#19
|
Hello Everyone,
i am new to the n900 and would love to get this wol functionality on there, the problem is that when i follow the beginning instructions, it doesn't seem to work. I downloaded rootsh and the editor, but it looks as if my root thing is not working. here is the copy past from the shell account, any advice would be appreciated:
![]() |
2010-04-15
, 09:38
|
Posts: 3 |
Thanked: 0 times |
Joined on Apr 2010
|
#20
|
for example a wol web page like
http://www.dslreports.com/wakeup
if you don't like giving them your real mac address spoof it first. an alternative is to use a windows program to send it
http://www.depicus.com/wake-on-lan/wake-on-lan-gui.aspx
see if it works. if any one of these methods work over the internet but not the script then we know it's not a network problem or the router destroying the magic packet.