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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Testing my Site 1

Status
Not open for further replies.

nevets2001uk

IS-IT--Management
Jun 26, 2002
609
GB
I have created a very simple ASP page to test the priniciples involved with ASP.

I now want to test it.

I have IIS installed on my machine and I have placed the ASP page in the correct directory within the C:\Inetpub\ directory.

However I try connecting to and it just tries to go out to the web - I've tried connecting to as well. Still no dice!

Is there something else I have to do to get a test page working on my PC?

Thanks,

Steve
 
Using the last one 172.0.0.1 etc worked but for some reason the other two try to look to the web for the domains...

and (IT0001 being the computer name)

Shouldn't those work as well?

Also how would I connect to the test site on my local PC from another computer?

Thanks,

Steven
 
In you IIS, right click on your site and select the "Browse" option to see how IIS refers to the site. Don't use the " - look at my last post.

If you are on a network, just go to another PC and type the URL or your PC/site

The URLs are the same as my last post with the exception of the last one (127.0.0.1 is always the IP address of the PC that you are on)

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
 
According to the IIS Personal Web Manager my site is at
If I enter (without a www) it spends a while looking for the page before displaying a TCP Error. However in the address bar it has now changed to
Same as above with the localhost. I havn't entered a it adds it anyway and still looks out to the web

I'm a novice at this so excuse me if this is a stupid oversite!

Thanks
 
OH - PWS? Win98? That can be a little quirky like that I've heard - I haven't worked with it much

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
 
This is a problem with the proxy server you are using to access the internet... This is what you do:

1. Go to Internet Option of your browser
2. Go to Connections
3. If you are using LAN Connections then go to LAN settings, if not just go to the proxy setting of your provider
4. Go to Advanced
5. In the box where it says "do not use proxy server for addresses begining with", type the following: localhost;yourcomputername
6. Click OK
7. On the Proxy Screen make sure that the option "Bypass Proxy Server for local addresses" is selected.

These steps should solve your problem, because what is happening is that your computer is looking for localhost on the proxy server because it is set to look there..

Let me know if it works...
 
That's great. Thanks.

Seems to have sorted my problem 100%

Steve
 
Another solution to this would have been to add entires in your hosts file for your computer name and localhost. This file is checked before a request is sent out for domain name resolution, so they would have directed the browser to 127.0.0.1.

This file is located at:
Code:
[Primary Drive]:\WINNT\System32\drivers\etc\hosts
or
[Primary Drive]:\Windows\System32\drivers\etc\hosts

The file doesn't have an extension but you can edit it with any text editor. The format is:
Code:
name   ip address

#and you can use #'s like this to make the rest of the line a comment, so you could add an entry like so:
localhost   127.0.0.1  #this will redirect to my local machine
l           127.0.0.1  #this will redirect to localhost because I'm to lazy to type it all out

This is also a goo dway to block advertising stuff. If you enter an address in your hosts file and direct it to 127.0.0.1, than rather than get whatever annoying stuff they're trying to pass you the system instead tries to resolve the url on your local machine. When it can't it shows a page not found error. There's several lists out there if you google for them that include places like gator and all of the other spyware sites.

[sub]01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111[/sub]
minilogo.gif alt=tiernok.com
The never-completed website
 
another standard thing i do when i'm developing on a machine is go into internet options and under advanced there's a "do not search from the address bar" option because innumerous times i've put in localhost or machinename and it's tried finding that domain on the internet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top