Computer question * boring & techy! * |
Post Reply | Page 12> |
Author | |
stephenperry
Bavarian-Board Contributor Joined: 20-April-2004 Location: Elgin Status: Offline Points: 7213 |
Topic: Computer question * boring & techy! * Posted: 19-April-2005 at 15:57 |
you were warned!! Okay, here goes... Currently running a popular FTP server on one of my computers on the mini-LAN at home using Serv-U v5.0 Corporate Edition, IIS 6.0 is installed, Windows XP Pro SP2. Dynamic IP address provided by ISP, changes every few weeks or so, dynamic host domain provided by "no-ip.com" ADSL port redirecting FTP port 21 to internal address of computer on LAN (192.168.0.2), all thats working great Now for my question.... When people connect to my FTP server, they usually connect by using internet explorers built in FTP browser, instead of using a dedicated FTP client. Given this, if my computer is turned off or the server is offline for any reason, the FTP browser takes about 30 seconds before it gives up and times out. What I would like is to open a webpage, which in turn tests for connectivity to the FTP server (pinging port 21?) and, depending on the result, redirects to either the FTP browser screen (ftp://sperry.serveftp.com) or onto a holding page saying something like "server currently offline, please try again later" Easiest way would be to just leave the server running 24/7 but i don't really want to do that for various reasons Using Windows Scripting Host is a possibility, put the script within the index page on a some webspace Any ideas? |
|
2007 Ford Mondeo 2.0 TDCI Titanium X Auto 1983 Ford Sierra XR4i 2000 Alpina B10 3.3 #118 1999 BMW 323Ci 1995 BMW 318i SE 1994 Vauxhall Omega 2.0 GLS 1995 Ford Mondeo 1.8 LX 1990 Honda Concerto 1.6 EX 1986 Ford Orion 1.6 GL 1989 Ford Fiesta 1.1 Firefly |
|
Sponsored Links | |
Goldryder
Bavarian-Board Contributor Illegitimi Non Carborundum Joined: 02-April-2004 Location: Acomb, North Yorkshire Status: Offline Points: 5301 |
Posted: 19-April-2005 at 16:06 |
erm....
Can we have that in 'pooter dunce speak' please? Specially as this pooter is still not behaving itself..... |
|
October 2-6 2008 - Houston, Texas - Long Distance Wedding
March 15-April 1 2009 - Transatlantic Cruise October 10-25 2009 - China, Korea, Taiwan & Japan Cruise |
|
stephenperry
Bavarian-Board Contributor Joined: 20-April-2004 Location: Elgin Status: Offline Points: 7213 |
Posted: 19-April-2005 at 16:24 |
umm.. 1. you click the link for www.stephensftpserver.com at the bottom of my profile 2. your internet browser (internet explorer/firefox whatever) opens the page located at www.stephensftpserver.com 3. this page contains something to test the connection to ftp://sperry.serveftp.com, maybe download a small test file, or responding to a command, something to signify that its responding IF this test is successful THEN open ftp://sperry.serveftp.com in your web browser ELSE if the test is not successful, show a "failed to connect" error message or webpage instead
is that clearer? |
|
2007 Ford Mondeo 2.0 TDCI Titanium X Auto 1983 Ford Sierra XR4i 2000 Alpina B10 3.3 #118 1999 BMW 323Ci 1995 BMW 318i SE 1994 Vauxhall Omega 2.0 GLS 1995 Ford Mondeo 1.8 LX 1990 Honda Concerto 1.6 EX 1986 Ford Orion 1.6 GL 1989 Ford Fiesta 1.1 Firefly |
|
kbannon
Admin Group E39 525i Sport Individual Joined: 09-October-2002 Location: 64 Zoo Lane Status: Offline Points: 15508 |
Posted: 19-April-2005 at 16:27 |
let me get this right - you want a web page to ping the ftp server and if switched on then redirect visitor to it otherwise display a custom error? If so then the page pinging the server would need to be on an entirely different server [if it is on the same then it cant really test itself if off!] So then you want a page that will do something like this |
|
Current: 2009 E60 520d "Sport" tractor
Previous: 1989 E30 320i SE 1997 E39 523i 2003 E39 525i Sport Individual |
|
kbannon
Admin Group E39 525i Sport Individual Joined: 09-October-2002 Location: 64 Zoo Lane Status: Offline Points: 15508 |
Posted: 19-April-2005 at 16:30 |
my reply was written befopre you got allys reply Anyway what I have there is a php function that pings the server and displays online or offline. It could as easily be modded to redirect instead of write online! I also have an ASP version of it. |
|
Current: 2009 E60 520d "Sport" tractor
Previous: 1989 E30 320i SE 1997 E39 523i 2003 E39 525i Sport Individual |
|
stephenperry
Bavarian-Board Contributor Joined: 20-April-2004 Location: Elgin Status: Offline Points: 7213 |
Posted: 19-April-2005 at 16:34 |
2007 Ford Mondeo 2.0 TDCI Titanium X Auto 1983 Ford Sierra XR4i 2000 Alpina B10 3.3 #118 1999 BMW 323Ci 1995 BMW 318i SE 1994 Vauxhall Omega 2.0 GLS 1995 Ford Mondeo 1.8 LX 1990 Honda Concerto 1.6 EX 1986 Ford Orion 1.6 GL 1989 Ford Fiesta 1.1 Firefly |
|
Goldryder
Bavarian-Board Contributor Illegitimi Non Carborundum Joined: 02-April-2004 Location: Acomb, North Yorkshire Status: Offline Points: 5301 |
Posted: 19-April-2005 at 16:34 |
erm..... well...... ummmmmm..... nope never mind, I'm sure Killian will iron out your wrinkles for you Stephen |
|
October 2-6 2008 - Houston, Texas - Long Distance Wedding
March 15-April 1 2009 - Transatlantic Cruise October 10-25 2009 - China, Korea, Taiwan & Japan Cruise |
|
stephenperry
Bavarian-Board Contributor Joined: 20-April-2004 Location: Elgin Status: Offline Points: 7213 |
Posted: 19-April-2005 at 16:35 |
more wrinkles than an elephants trunk... thanks for reading it anyway, i did warn it was boring lol
|
|
2007 Ford Mondeo 2.0 TDCI Titanium X Auto 1983 Ford Sierra XR4i 2000 Alpina B10 3.3 #118 1999 BMW 323Ci 1995 BMW 318i SE 1994 Vauxhall Omega 2.0 GLS 1995 Ford Mondeo 1.8 LX 1990 Honda Concerto 1.6 EX 1986 Ford Orion 1.6 GL 1989 Ford Fiesta 1.1 Firefly |
|
NOISUFNOC
Really Senior Member II Joined: 27-September-2004 Location: Sunny Greenock by the Sea Status: Offline Points: 1473 |
Posted: 19-April-2005 at 16:37 |
Could you not write a simple script file that pings ftp://sperry.serveftp.com if its offline then it could just display an offline message and if its up it would allow access, bit rusty on ins and outs but concept is similar to software that tells you uptime of ftp sites etc. im sure if seen code for this somewhere in the past but have a funny feeling it may have been unix stuff, i will check and let you know. |
|
528 for now
|
|
stephenperry
Bavarian-Board Contributor Joined: 20-April-2004 Location: Elgin Status: Offline Points: 7213 |
Posted: 19-April-2005 at 16:38 |
my programmings a bit rusty, i only have decent experience of C, C++ and VB and that was a few years ago now
|
|
2007 Ford Mondeo 2.0 TDCI Titanium X Auto 1983 Ford Sierra XR4i 2000 Alpina B10 3.3 #118 1999 BMW 323Ci 1995 BMW 318i SE 1994 Vauxhall Omega 2.0 GLS 1995 Ford Mondeo 1.8 LX 1990 Honda Concerto 1.6 EX 1986 Ford Orion 1.6 GL 1989 Ford Fiesta 1.1 Firefly |
|
stephenperry
Bavarian-Board Contributor Joined: 20-April-2004 Location: Elgin Status: Offline Points: 7213 |
Posted: 19-April-2005 at 16:41 |
can someone test my server to make sure they can log on, im getting an "offline" message on Killians link, but im sure thats to do with me not being able to access from outside the lan when im inside it (if that makes sense? i mean i can connect to my own server through 192.168.0.2 but not through my current ip address) |
|
2007 Ford Mondeo 2.0 TDCI Titanium X Auto 1983 Ford Sierra XR4i 2000 Alpina B10 3.3 #118 1999 BMW 323Ci 1995 BMW 318i SE 1994 Vauxhall Omega 2.0 GLS 1995 Ford Mondeo 1.8 LX 1990 Honda Concerto 1.6 EX 1986 Ford Orion 1.6 GL 1989 Ford Fiesta 1.1 Firefly |
|
kbannon
Admin Group E39 525i Sport Individual Joined: 09-October-2002 Location: 64 Zoo Lane Status: Offline Points: 15508 |
Posted: 19-April-2005 at 17:30 |
i getting offline messages and can't open it but a cmd / ping returns ok with an average of 65ms. WRT the files, do you want ASP or PHP (better!). I have also created two images and set the script to ping your server. If offline then it shows an offline pic and an online one if its on. The file can be found @ http://www.bmwmovies.net/sp_ping/image.php [unfortunatley the forum software doesn't allow php images but I could hack it into your sig directly in the database! if ping("sperry.serveftp.com") = True then I think it works! |
|
Current: 2009 E60 520d "Sport" tractor
Previous: 1989 E30 320i SE 1997 E39 523i 2003 E39 525i Sport Individual |
|
stephenperry
Bavarian-Board Contributor Joined: 20-April-2004 Location: Elgin Status: Offline Points: 7213 |
Posted: 19-April-2005 at 18:10 |
cheers very much |
|
2007 Ford Mondeo 2.0 TDCI Titanium X Auto 1983 Ford Sierra XR4i 2000 Alpina B10 3.3 #118 1999 BMW 323Ci 1995 BMW 318i SE 1994 Vauxhall Omega 2.0 GLS 1995 Ford Mondeo 1.8 LX 1990 Honda Concerto 1.6 EX 1986 Ford Orion 1.6 GL 1989 Ford Fiesta 1.1 Firefly |
|
Goldryder
Bavarian-Board Contributor Illegitimi Non Carborundum Joined: 02-April-2004 Location: Acomb, North Yorkshire Status: Offline Points: 5301 |
Posted: 20-April-2005 at 03:46 |
I assume you now have no wrinkly bits left on your thingy, Stephen?
Must be far more comfy to sit on now then..... soz but couldn't resist one little teeny weeny chuckle there..... |
|
October 2-6 2008 - Houston, Texas - Long Distance Wedding
March 15-April 1 2009 - Transatlantic Cruise October 10-25 2009 - China, Korea, Taiwan & Japan Cruise |
|
pma1ums
Really Senior Member II Joined: 12-October-2004 Location: central uk Status: Offline Points: 1148 |
Posted: 20-April-2005 at 06:03 |
mr perry evertime i try to click on your link it allways shows up .page cannot be displayed ..i tried a few months back and got the same???????? i use xp and aol 9 for net access |
|
its a dogs world out there
|
|
stephenperry
Bavarian-Board Contributor Joined: 20-April-2004 Location: Elgin Status: Offline Points: 7213 |
Posted: 20-April-2005 at 14:31 |
you're doing it at the wrong times, if you tried anytime between 11:30 last night and 7:20pm this evening you would get that page cannot be displayed error cos the computer is not on, hence the server isnt running, try it now - i bet it works this is why i made this topic to try and find a solution to make it a bit more obvious that the server is not running |
|
2007 Ford Mondeo 2.0 TDCI Titanium X Auto 1983 Ford Sierra XR4i 2000 Alpina B10 3.3 #118 1999 BMW 323Ci 1995 BMW 318i SE 1994 Vauxhall Omega 2.0 GLS 1995 Ford Mondeo 1.8 LX 1990 Honda Concerto 1.6 EX 1986 Ford Orion 1.6 GL 1989 Ford Fiesta 1.1 Firefly |
|
pma1ums
Really Senior Member II Joined: 12-October-2004 Location: central uk Status: Offline Points: 1148 |
Posted: 20-April-2005 at 14:46 |
aha thanks its now alive and kicking ps can i send you loads of blank dvd s so i can be lazy and not have to download a lot of the stuff i would like to be on a hard copy....then i could subject her to some of them too pps if theres anything you need making in steel ....its sorted ..does that bit help as an extra blag??? |
|
its a dogs world out there
|
|
NOISUFNOC
Really Senior Member II Joined: 27-September-2004 Location: Sunny Greenock by the Sea Status: Offline Points: 1473 |
Posted: 20-April-2005 at 14:56 |
Stephen, Im still looking at ways of helping your ftp server out, is this script of kbannons able to be customised, if i was to have an image of all the files on your server, I dont mind leaving mine on during the day and once its running then im intending leaving it up, so extra bandwidth will be available in evenings as well.
|
|
528 for now
|
|
stephenperry
Bavarian-Board Contributor Joined: 20-April-2004 Location: Elgin Status: Offline Points: 7213 |
Posted: 20-April-2005 at 15:02 |
thanks im just about to upload the script and ill need some help trying it out one thing has struck me though, because my ip is dynamic and "sperry.serveftp.com" is done through a dynamic dns service, wont that always show up as online? or am i being thick? (no suprise there lol) |
|
2007 Ford Mondeo 2.0 TDCI Titanium X Auto 1983 Ford Sierra XR4i 2000 Alpina B10 3.3 #118 1999 BMW 323Ci 1995 BMW 318i SE 1994 Vauxhall Omega 2.0 GLS 1995 Ford Mondeo 1.8 LX 1990 Honda Concerto 1.6 EX 1986 Ford Orion 1.6 GL 1989 Ford Fiesta 1.1 Firefly |
|
kbannon
Admin Group E39 525i Sport Individual Joined: 09-October-2002 Location: 64 Zoo Lane Status: Offline Points: 15508 |
Posted: 20-April-2005 at 15:57 |
the script of mine pings sperry.serveftp.com and not the IP addy so it should be fine.
The script can be easily modified (it is just a call to a php function). Stephen - are you uploading the script to your own server? |
|
Current: 2009 E60 520d "Sport" tractor
Previous: 1989 E30 320i SE 1997 E39 523i 2003 E39 525i Sport Individual |
|
Post Reply | Page 12> |
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |