Hi Steve
Now I think I get the picture.
One possible solution would be to ask your ISP for a static IP address. If
they won't help, I'm sure another one will. Many/most will provide that,
though there may be a slight extra fee.
If not you are stuck with the changing IP. On possible solution would be to
have the web application determine its IP address (or have a script that
sets it) and use the updated version on the html pages to point towards the
ftp site.
Another idea - depends on the technology you use in your web application -
would be to have some part of the application that, on load up or change of
the IP, would email you (and anyone else who needs to know) the new IP.
Then they would always have the latest IP address.
Without a static IP there is not much you can do, except have the site
automatically update the ftp links once it finds out what its ip is.
Hope this helps,
Andrew
Professional Java Servlets 2.3
http://www.amazon.com/exec/obidos/ASIN/186100561X
http://www.amazon.co.uk/exec/obidos/ASIN/186100561X
-----Original Message-----
From: CAPISTRANT STEVE [mailto:steve.capistrant@t...]
Sent: 09 August 2002 01:59
To: 'Andrew Harbourne-Thomas '
Subject: RE: [html_code_clinic] RE: Dynamic link for ftp: site
Ok this is the deal, I have a server at my house and I am setting up a
website for my family. I have several web pages that come up fine from
anywhere. I am putting a hyper link on the website so they can click on it
and go to my running ftp site. I can get to the site from anywhere when I
type in FTP://(current IP address) but since I have a cable modem and the IP
changes every once in a while HARD coding the IP address will mean I have to
change it everytime. THe web pages use ../ then the path to the page. I can
find out how to do this to get my ftp site to come up. I have tried puitting
in FTP://(current IP addrress) and then tried it remotely and it was fine.
What I am trying to find is the same thing for the ftp as for the web pages.
This is driving me crazy since we can use our domain name at work and it
works great but since I do not have a DNS server pointing to my cable modem
when one uses my domain name this does not work either.
-----Original Message-----
From: Andrew Harbourne-Thomas
To: HTML Code Clinic
Sent: 08/08/2002 04:46 PM
Subject: [html_code_clinic] RE: Dynamic link for ftp: site
Hi Steve
If I understand your problem correctly, the problem is not accessing the
site from the same machine that it is being hosted on, but accessing it
from
other machines on a network or the internet.
Using 127.0.0.1 or localhost tells your browser to look at the machine
that
you are working on. Both of these translate into "this machine". So to
access the machine remotely you need its real (dynamic) ip address or
name.
If you are on an internal network the ip may change but the machine name
may
(or may not) be fixed, according to configuration. Over an ISP normally
your name and ip change each time so you need to find then out each
time.
First to look at it across an internal network your machine would
probably
have a name (hopefully) associated with it, though the IP may be
dynamic.
For example your machine could be called "stevespc", so within the local
network http://stevespc would work. Next assume that your pc is within
the
"is" domain within the "thermo" network. Then the full address for
referencing your pc, would be something like
http://stevespc.is.themo.com .
You may need to check with your network administrator. This address may
not
be available beyond the internal network depending on the companies
firewall.
If you are connecting directly to the internet, and the isp is
dynamically
allocates your IP, then you need to do one of two things.
1: Find out the machines IP and use that - use the dos command
("ipconfig")
once connected to the network to get your IP. Then you can access the
machine with http://your.ip/
2: If you want to find the machine name across the network - your ISP
will
give you a name something like:
z433.ab2.pax.dublin.eircom.net - so to get this you can use the dos
"nslookup ipaddress" command (replacing ipaddress with the machines ip
address) to get the machines name, and from this the url you can use:
http:// z433.ab2.pax.dublin.eircom.net (just change the protocol as
required) .
In any case, as long as the IP address or machine name are correct over
the
network/internet you should not have a problem as long as your URL is
appropriately formatted for that protocol.
I hope this helps clarify what you were asking?
Hope this helps,
Andrew
Professional Java Servlets 2.3
http://www.amazon.com/exec/obidos/ASIN/186100561X
http://www.amazon.co.uk/exec/obidos/ASIN/186100561X
-----Original Message-----
From: CAPISTRANT STEVE [mailto:steve.capistrant@t...]
Sent: 08 August 2002 19:07
To: HTML Code Clinic
Subject: [html_code_clinic] RE: Dynamic link for ftp: site
If I type in the ftp sites current IP address remotely or locally I get
to
the site no problem. But if I use "localhost" or 127.0.0.1 then try to
access over the internet I get that IP or localhost for the destination
address. If I do something similar with any of my web pages it inputs
the
correct current dynamic IP address for my site. It has something to do
with
the way you CAN address a web page but when it comes to starting another
protocol it does not like it???? What do you think?
Steve Capistrant
System Administrator
ThermoRamsey
501 90th Ave NW
Coon Rapids, MN 55433
xxx.xxx.xxxx
steve.capistrant@t...
-----Original Message-----
From: Andrew Harbourne-Thomas [mailto:andrew@h...]
Sent: Thursday, August 08, 2002 11:42 AM
To: HTML Code Clinic
Subject: [html_code_clinic] RE: Dymanic link for ftp: site
Hi Steve
You could try:
ftp://127.0.0.1 (equivalent to localhost IP)
If that does not work, try checking the port that your ftp server is
configured for. Normally port 21 is used, so if it is anything else,
include this in the url e.g.:
ftp://127.0.0.1:21
ftp://localhost:21
Otherwise I'd have to guess that ftp is not set up properly??
Hope this helps,
Andrew
Professional Java Servlets 2.3
http://www.amazon.com/exec/obidos/ASIN/186100561X
http://www.amazon.co.uk/exec/obidos/ASIN/186100561X
-----Original Message-----
From: Steve capistrant [mailto:steve.capistrant@t...]
Sent: 08 August 2002 17:25
To: HTML Code Clinic
Subject: [html_code_clinic] Dymanic link for ftp: site
I am trying to find a way to set a link from default webpage which is on
my D: drive under inetpub, wwwroot and go to my FTP site on the same
server and drive but it is under inetpub, ftproot. My server has a
dynamic
IP so I can not hard code it. I can put in dymanic webpages which work
fine but I can not find how to do the same for my FTP site. Can anyone
help I have tried everything I can think of.
(ftp://localhost, ../../ftproot, ftp://, etc....)I am running on a
windows
2000 server using IIS as my website.
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20