Print Page | Close Window

Computer question * boring & techy! *

Printed From: Bavarian-Board.co.uk - BMW Owners Discussion Forum
Category: General Forums
Forum Name: General Off Topic Forum
Forum Discription: Discuss off topic issues related to BMWs.
URL: http://www.bavarian-board.co.uk/forum_posts.asp?TID=16821
Printed Date: 01-May-2024 at 00:27


Topic: Computer question * boring & techy! *
Posted By: stephenperry
Subject: Computer question * boring & techy! *
Date 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 - 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



Replies:
Posted By: Goldryder
Date 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


Posted By: stephenperry
Date Posted: 19-April-2005 at 16:24

umm..

1.  you click the link for http://www.stephensftpserver.com - www.stephensftpserver.com at the bottom of my profile

2.  your internet browser (internet explorer/firefox whatever) opens the page located at http://www.stephensftpserver.com - www.stephensftpserver.com

3.  this page contains something to test the connection to ftp://sperry.serveftp.com - 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 - 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


Posted By: kbannon
Date 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
http://www.bmwmovies.net/sp_ping/ - http://www.bmwmovies.net/sp_ping/  (without the google/yahoo stuff!)



-------------
Current: 2009 E60 520d "Sport" tractor
Previous: 1989 E30 320i SE
1997 E39 523i
2003 E39 525i Sport Individual


Posted By: kbannon
Date 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.
K.



-------------
Current: 2009 E60 520d "Sport" tractor
Previous: 1989 E30 320i SE
1997 E39 523i
2003 E39 525i Sport Individual


Posted By: stephenperry
Date Posted: 19-April-2005 at 16:34

could you email them to me please?

mailto:stephen@perrypc.co.uk - stephen@perrypc.co.uk

 



-------------

    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


Posted By: Goldryder
Date Posted: 19-April-2005 at 16:34
Originally posted by stephenperry stephenperry wrote:

umm..

1.  you click the link for http://www.stephensftpserver.com - www.stephensftpserver.com at the bottom of my profile

2.  your internet browser (internet explorer/firefox whatever) opens the page located at http://www.stephensftpserver.com - www.stephensftpserver.com

3.  this page contains something to test the connection to ftp://sperry.serveftp.com - 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 - 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?




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


Posted By: stephenperry
Date 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


Posted By: NOISUFNOC
Date Posted: 19-April-2005 at 16:37

Could you not write a simple script file that pings ftp://sperry.serveftp.com - 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


Posted By: stephenperry
Date 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


Posted By: stephenperry
Date 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


Posted By: kbannon
Date 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 - 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!
The php files are attached here [ http://www.bmwcarclubforum.co.uk/uploads/kbannon/Ping.zip - Ping.zip ]
The asp code is below:-

Originally posted by code code wrote:


<% option explicit
function ping(arg)
  with Server.createobject("wscript.shell")
    ping = Not CBool(.run("ping -n 1 " & arg,0,true))
  end with
end function

if ping("sperry.serveftp.com") = True then
   Response.Redirect("
ftp://sperry.serveftp.com - ")
else
Response.Redirect("server_down_page.asp")
end if
%>

I think it works!



-------------
Current: 2009 E60 520d "Sport" tractor
Previous: 1989 E30 320i SE
1997 E39 523i
2003 E39 525i Sport Individual


Posted By: stephenperry
Date 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


Posted By: Goldryder
Date 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


Posted By: pma1ums
Date 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


Posted By: stephenperry
Date Posted: 20-April-2005 at 14:31
Originally posted by pma1ums pma1ums wrote:

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

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


Posted By: pma1ums
Date 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


Posted By: NOISUFNOC
Date 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


Posted By: stephenperry
Date 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


Posted By: kbannon
Date 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


Posted By: MTEC530D
Date Posted: 20-April-2005 at 16:01

Stephen can i upload you some stuff or not it says access denied when i try? Ive got about 6 dvd's full of aplications and stuff. i'll pm you the index's first so you can see if there's owt you want.



-------------
M tec 530D 2001model. well impressed after so many mercedes. Last being an E class


Posted By: stephenperry
Date Posted: 20-April-2005 at 16:07
you can upload to the UPLOADS/VIDEOS and UPLOADS/PICTURES directories only, it will produce an access denied message if you try and upload to any other directory, including the main one (this is so i can check the uploads first to see if they are complete, rename if necessary etc.)

-------------

    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


Posted By: stephenperry
Date Posted: 20-April-2005 at 16:09
wherever posssible, please make your own directory, your screename, e.g. MTEC530D and upload into that so i know who the uploads are from and can credit accordingly

-------------

    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


Posted By: Goldryder
Date Posted: 20-April-2005 at 18:19
What the heck does this mean....

NDIS i/o driver blocked

Keeps flashing up on this pooter screen and its driving me nutz

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


Posted By: stephenperry
Date Posted: 21-April-2005 at 15:23

Originally posted by Goldryder Goldryder wrote:

What the heck does this mean....

NDIS i/o driver blocked

Keeps flashing up on this pooter screen and its driving me nutz

check your firewall settings, and its possibly virus-related, so check that too



-------------

    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


Posted By: stephenperry
Date Posted: 21-April-2005 at 15:25
Originally posted by pma1ums pma1ums wrote:

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???

nae probs, if you send a box of dvd+r's ill burn you the whole collection

oh, and i wouldn't mind a strut brace if you're offering 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


Posted By: Goldryder
Date Posted: 21-April-2005 at 15:28
Originally posted by stephenperry stephenperry wrote:

Originally posted by Goldryder Goldryder wrote:

What the heck does this mean.... NDIS i/o driver blocked Keeps flashing up on this pooter screen and its driving me nutz


check your firewall settings, and its possibly virus-related, so check that too




Firewall and anti-virus is working perfectly...but the notice still flashes up every few mins..weird things these poots....

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


Posted By: stephenperry
Date Posted: 21-April-2005 at 15:34
Originally posted by stephenperry stephenperry wrote:

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)

thorough testing (with thanks to p0dy for his patience! ) has led to the conclusion that ping will be no use... on the other hand, this works a treat...

telnet

open sperry.serveftp.com 21

gives just the right relevant results (connect or cant connect)... only problem is how to call these commands from php or asp, p**** the results and act accordingly

maybe i should just get myself a different isp, one that offers static ip addresses with their adsl accounts



-------------

    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


Posted By: stephenperry
Date Posted: 21-April-2005 at 15:35
Originally posted by Goldryder Goldryder wrote:

Originally posted by stephenperry stephenperry wrote:

Originally posted by Goldryder Goldryder wrote:

What the heck does this mean.... NDIS i/o driver blocked Keeps flashing up on this pooter screen and its driving me nutz


check your firewall settings, and its possibly virus-related, so check that too

Firewall and anti-virus is working perfectly...but the notice still flashes up every few mins..weird things these poots....

reminds me of NDISWAN, related to Novell Netware client, which version of windows are you using at the moment, Ally?



-------------

    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



Print Page | Close Window