Click to See Complete Forum and Search --> : PWS problem
Michael
Nov 27th, 2000, 05:11 AM
Not sure if this is the correct forum for this but here goes anyway.
I have just started playing around with Personal Web Server and the server name is the name of the machine, which has spaces in it. I believe that these spaces are causing problems with my ASP links when they get translated to %20.
The reason that I think the spaces are the cause of the problem is because things work fine if I use the IP address that I get from WINIPCFG instead of the name in the URL.
Can I change the name of the server during PWS setup, or after setup? I can't find a way to do this within PWS.
Alternatively, is there a safe way to change my machine name without it upsetting anything?
I am using Win98, with PWS coming from the Win98 CD Add-ons folder.
[Edited by Michael on 11-27-2000 at 06:34 AM]
lenin
Nov 27th, 2000, 06:53 AM
Michael,
this isn't the answer but if your source is only going to be tested on you machine by yourself and then put on to a production machgine at some point, why not use //localhost? This would remove the issue if spaces cause problems.
thanks
Lenin.
vbdeveloper
Nov 27th, 2000, 08:53 AM
Firstly, all your .asp or htm files should be in the wwwroot folder. Now if they are in this folder then,
Type this type of code in the internet explorers address bar:
http:\\localhost\yourpage.asp
or
http:\\localhost\yourpage.asp
if your pages are in any directory in the wwwroot folder then,
http:\\localhost\yourdirectory\yourpage.asp
or
http:\\localhost\yourdirectory\yourpage.asp
You should be able to change your machine's name on the network and therefore its url:
Right click on Network Neighbourhood and choose Properties.
Double click on TCP/IP.
Click on the DNS Configuration tab.
Change your computer's name in the Host textbox.
Click OK.
Click OK.
Also...if you want to change your machine's SMB sharing name in Network Neighbourhood:
Right click on Network Neighbourhood and choose Properties.
Click on the Identification tab.
Change your machine's name in the Computer Name textbox.
Click OK.
You can access your PWS from a web browser using any of the following:
http://127.0.0.1/
http://localhost/
http://<<Network IP>>/
http://<<Dialup IP>>/
http://<<Computer Name>>/
http://<<Computer Name>>.<<Domain Name>>/
[Edited by matthewralston on 11-27-2000 at 11:48 AM]
Michael
Nov 27th, 2000, 07:37 PM
Thanks for all of your suggestions, guys. //localhost worked fine.
I didn't really want to change my machine name and the ever-changing IP address was a pain in the arse.
As I said in my original post, I am just getting into this stuff and I wasn't aware of \\localhost. Perhaps I should read the documentation a bit more thoroughly!
Thanks again.
Michael
Nov 27th, 2000, 07:42 PM
Matthew: Could you tell me a bit more about 127.0.0.1 please? Is it a special/reserved IP address?
Dim
Nov 27th, 2000, 10:19 PM
127.0.0.1 is a localhost ip...it would be the same as all the other things he listed. It will always refer to the local machine.
D!m
ADDENDUM:
That about covers it, D!m. What more can I add?
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.