Results 1 to 8 of 8

Thread: PWS problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 1999
    Location
    Leicester, UK
    Posts
    123
    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]

  2. #2
    Addicted Member
    Join Date
    Feb 1999
    Location
    Belfast
    Posts
    254
    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.

  3. #3
    Junior Member
    Join Date
    Nov 2000
    Posts
    20

    Reply


    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


  4. #4
    Guest
    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]

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 1999
    Location
    Leicester, UK
    Posts
    123
    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.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Feb 1999
    Location
    Leicester, UK
    Posts
    123

    ADDENDUM:

    Matthew: Could you tell me a bit more about 127.0.0.1 please? Is it a special/reserved IP address?

  7. #7
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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
    Dim

  8. #8
    Guest
    ADDENDUM:

    That about covers it, D!m. What more can I add?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width