Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

web server over telephone ? 1

Status
Not open for further replies.

telenet

Programmer
Sep 26, 2002
3
0
0
IT



Hi everyone,

I put a personal web server on my pc and created
a small client to automatically update the dynamic
ip address at a page I have at an ISP so that it
jumps to my web server at home.

It seems to work. I can view my pc from any pc
attached to the internet. Is this always the case?
Are there any limitations (aside the dynamic ip
problem) to anyone anywhere viewing my server on
my pc? If not then that means that alot of people
have web servers on their pc and serving the internet
directly from home (even if using dynamic ip).
Are there problems with proxy servers at IPSs?

It just seems to simple to be true ! Thanks alot
for any comment.


<<<<<<<<<<<<<<< telent >>>>>>>>





 
This is very interesting. Can you tell me how you update your dynamic IP address from your ISP.
Thanks
 
I am doing the same thing at my house. I am using a piece of software called dns2go. It automatically updates your ip address to there site every 5 minutes or so. The only catch is that your web address has to be It's ok with me though because it is free. I use IIS to host it. I have an FTP site aswell.

Some ISP's block port 80 wich is http. So then you need to tell your web hosting software to listen on a different port like 8080 or 1230.
 
It's a piece of cake. You just have to discover
your ip address at the moment the pc is connected on
the net by calling netstat -r and passing it through
a script then ftp a small web page to your internet
provider. Here is the code:

dos batch file: tj.bat

awk -f create.awk > tjump.html

ftp -v -i -s:tjbat
--------------------------------------

tjbat file for automatic ftp access :

open ftp.diglnd.com or (any isp that hosts)
your name
password
asc
put tjump.html
bye

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

awk file: create.awk

BEGIN{

system(&quot;netstat -r > ntst&quot;);
flag=0;
for(i=0;i<600000;i++);

f=1;
while (f!=0)
{ f=getline s<&quot;ntst&quot;;
j=split(s,a,&quot; &quot;); i=j;
if (s~/[0-9]/ && a[4]!~/127.0.0.1/ && flag==0 )
{ address=a[4];flag=1 }
}

print &quot;<script>&quot;;
print &quot;window.open(\&quot; print &quot;</script>&quot;;
}


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

Awk is a simple scripting language you can download
from the web. activate your web server when you execute
the batch file.

This does not require your isp to host cgi scripts so
it is quite universal. I am just not sure if it can
really work with all IPSs since it seems so simple to
host your internet site from home!



TELENET
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top