The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] No CSS on local computer (26 posts)

  1. RandomZero
    Posted 8 years ago #

    So last night I installed wordpress on my local server (XAMPP on WinServer2003 connected through ICS) but didn't have time to configure it because I had to go to work.

    At work, I had some time on my hands so I decided to log in (which is funny because word pretty much blocks out the entire internet, so I have to set my server up to use port 8080) and continue setting up wordpress.
    It worked flawlessly at work. I got it set up in just a few minutes, I posted a new msg and created a new account.

    So then I come home and try to access it. Only, it wouldn't load?
    The main page works, but the wordpress directory does not, the wp-admin directory does not, nor does any php file.
    So I open up the readme.html file, and it opens fine.
    There's a link to log in, so I try that. It works, but there's no css and it takes the page a while to load.

    Anyone know how to fix this?

  2. Got it configured to be "localhost"? You can't do that and then expect to be able to access it from another machine.

  3. RandomZero
    Posted 8 years ago #


    It works at work, on a completely different network, using the URL.

    But it doesn't work on my home network, either on my main pc or on the pc hosting the server using either localhost,, or the PC's network IP.

  4. moshu
    Posted 8 years ago #

    Every machine in th world "thinks" of localhost - as itself.

  5. RandomZero: What I mean is, what do you have the WordPress installation's URL set to be? See, WordPress knows it's own URL. It needs to do that in order to build the site.

    So if you have the URL set to localhost, then it will build the site, and it's own links in that site, accordingly. And thus, when another machine tries to load it, and sees the localhost URL, it won't look at the site for the CSS files and other stuff, it will only look at itself.

    The URL of a WordPress site cannot be localhost unless you only want it to work on that machine.

  6. RandomZero
    Posted 8 years ago #

    Yeah, I used localhost and on the machine hosting the server.

    But I used the machines network IP on my main pc, which is not hosting the server.

    But, I just deleleted the database and recreated it and it works now.
    Thanks for the help.

  7. RandomZero
    Posted 8 years ago #

    Oh, ok.

    How would I go about changing that?

  8. RandomZero
    Posted 8 years ago #

    Nevermind, found it.

    "/wordpress" should work without anything else, right?

  9. No. Must be a real and complete URL, one that will be recognized by all machines.

  10. moshu
    Posted 8 years ago #

    You can't have both.
    It's either localhost - and only you can see it, or it is a URL accesible from the net - and you cannot see it as "localhost".

  11. RandomZero
    Posted 8 years ago #

    Ok, that's not going to work for me.

    With ICS, I can't view my server using the DNS. So in order to access it I actually have to use the network IP..

  12. Errr, what? You can use an IP address. will work just fine.

    The limitation is that it must be a URL. Not that it must have a name.

  13. RandomZero
    Posted 8 years ago #

    If I try and access my server using the url (http://my.url.com) it won't work from within my own network, but it works fine everywhere else.

    I can however, access my server from http://10.0.0.*, which is the network IP, from within my own network.

    I did originally have the wordpress url as http://localhost, which apparently worked when I wasn't at home, but didn't work when I was.
    So now it's http://10.0.0.*, which does work on my home network, but I don't know if it will work elsewhere.

  14. If I try and access my server using the url (http://my.url.com) it won't work from within my own network, but it works fine everywhere else.

    Ah. I see the problem. Your router isn't allowing it to come back through. It routes it externally instead of realizing that it's an internal address.

    Might need to change a router setting to fix this. On mine it's called "Filter Internet NAT Redirection" and it needs to be turned off.

    But, I can guarantee you that no site name like localhost or the local IP will work outside your home network.

  15. RandomZero
    Posted 8 years ago #

    Yeah, except I don't use a router.
    It's ICS(Internet Connection Sharing).

    I've got all the proper (Or so I think) ports forwarded, but it just refuses to work. Took me a week to realize the site actually worked..

    I have actually gotten it to work, and I found I can just log into phpmyadmin and change it in the options table.
    If worst comes to worst, I can just do that every time I want to access the thing..

  16. ICS? Yikes. Spend the $20-30 and get a home router. Really, it's worth it.

  17. RandomZero
    Posted 8 years ago #

    I have one, it's crap. Constantly drops connection, constantly unable to even access it. It's just the biggest peice of shit I've ever used.

    And it's not even the only router I've had the connection issues with, so I'd rather just not use one.

    I've managed to live with the ICS, it works (until now, of course..), it's just not that configurable.

  18. Huh. I've used several Linksys routers, never had a problem with them. They work great.

  19. RandomZero
    Posted 8 years ago #

    My luck I guess.

    I've used multiple linksys, d-link, netgear.. All either dropped the connection randomly, or slowed the connection.

    ICS however, does neither. It's relatively easy to set up as well.

  20. If you have a Linksys router, try installing newer firmware on it. Not the Linksys stuff, but the good stuff. I use dd-wrt on mine, makes it nice and easy and fast.

  21. RandomZero
    Posted 8 years ago #

    Currently have WRT24G, with dd-wrt firmware.

    Still sucks.

  22. Well, then I really can't help you. I love my router, wouldn't switch to ICS for love nor money. Never had the problems that you're describing with it.

  23. RandomZero
    Posted 8 years ago #

    Well, either way..

    http://10.0.0.* doesn't work on outside my network.
    So I'd have to make it http://my.site.com?

  24. Yes, except that my.site.com won't work on your inside network, will it?

    So you're kinda screwed either way there. I guess you could put my.site.com in your local hosts file to force it to direct you to the internal IP address. Might work.

  25. Jeremy Clark
    Posted 8 years ago #

    It does work, I do this myself at home, not the ICS part but for a couple of different reasons I can't add the domain name to my local dns server so I have to use a hosts file on my desktop.

  26. RandomZero
    Posted 8 years ago #

    Good call, I'll try that.

    It works, haha nice.

    Thanks so much for all your help and speedy responses :)

Topic Closed

This topic has been closed to new replies.

About this Topic