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()