|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Hi
I have a test web server setup at home and am using WakeOnLan. I have configured my server to shutdown if it hasn't been accessed in the last half hour and is otherwise idle. What I am trying to do now is using another server write a script which tests to see if my server is online or not, if it is offline then it sends a magic packet over UDP to my server's IP and tells the user that server is being started (takes about 15 seconds) and then refreshes/redirects the page. So basically I am looking for someone who can offer me free php/perl/python/whatever hosting which lets me use sockets. Then I will setup a dyndns webhop and voila I have a flexi-time webserver ![]() Thanks Last edited by Markup : July 11th, 2008 at 04:00 PM. |
|
#2
|
||||
|
||||
|
So initially I was amused that you were asking web hosting providers (such as ourselves) for free access to our services so that you could send a wake up to your own web server so you didn't have to purchase a hosting service from us
![]() See that's cheeky right?! But then I figured that in general, this would be a great service to offer - just issuing WOL packets as required. And then I thought - this is the internet, everything has already been thought of: http://www.rshut.com/products/wol/
__________________
ServWise Advanced Hosting - Better, Faster, Smarter Linux and Windows Hosting, Shared and Reseller, Low cost domains and SSL |
|
#3
|
||||
|
||||
|
Quote:
Hi Paul Thanks for the reply. I came across that site amongst others, but they require you to manually input your IP and MAC address. I would like it so that when I go to one of these WOL sites with a specially crafted URL it would automatically send the magic packet. All of the sites I have came across use POST form data (and rightly so), so I can't just create a query string and do it that way. I guess I could do it with cURL and then send the data to the WOL site, but I don't know of any free hosting providers which offer that. Heck I don't really need hosting I just need 1 page Hmm, I have root access to a web server at work, but maybe that isn't such a good idea ![]()
__________________
"The real danger is not that computers will begin to think like men, but that men will begin to think like computers" -- Sydney J. Harris |
|
#4
|
||||
|
||||
|
Actually, that site uses POST, but works with GET also.
If you try the POST you'll see the GET in the URL - so you don't even need to work out the variable sequence from the form. |
|
#5
|
||||
|
||||
|
Wow, it works!
I now have a self-hibernating, self-aware web server, brings a whole new meaning to ondemand ![]() It's practical for my needs (server is used by a handful of people) but obviously I wouldn't try anything like this is the wild. Thanks again |
![]() |
| Viewing: Dev Shed Forums > Web Hosting > Web Hosting Requests > A small request |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|