• Resolved Paul Wright

    (@signyourbikeout)


    Hello,

    I use WordPress locally on my Mac and all works fine. But when I use the IP address to view the site from another computer on my network, it loads the HTML, but not the CSS.

    I have had this problem before, but since everything else worked I haven’t bothered to fix it. I’m quite curious now why this doesn’t work. And yes, the CSS file is linked correctly (the site works fine locally and when I upload the site to the server it works as well: i.e. no absolute urls)

    Thanks
    Paul

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Paul Wright

    (@signyourbikeout)

    Has anyone else had this problem?

    I think I’ve figured out the problem, but not necessarily the best solution – I believe it has to do with the fact that the site’s URL as defined in the wp_options table is 127.0.0.1 for local installs – so when the PC on my network loads the site from on my mac’s server, the browser tries to find the css file on the PC, instead of correctly looking for it on the mac server.

    Paul

    That’s likely because the paths to the files refer to localhost, on your computer it would be correct, to the network computers it’s looking locally for the files and not finding them.

    Sorry skipped your above reply before.

    127.0.0.1 is basically the same as localhost.

    If you need the network computers to be able to see the site, then setup wordpress using your local network IP (internal ip – ie. what you router gives you), for example: 192.168.1.5

    Good Day,

    yes t31os, part of one of the messages it says is cannot find localhost and that is what I used when I set this up on my local computer.

    Do I need to reinstall for the above to work? I am using MAMP with ports set at default 8888 / 8889. I have routed the ports on my router to the assigned ip address.

    I tried replacing localhost:8888 with assigned internal ip address 10.0.1.6:8888 but I still see only HTML without CSS.

    Also when I click on anything the displayed blog message is it can not find database.

    greg

    If you’re intending on displaying this site to the world wide web you’ll need to forward the ports along inside your router for starters, but i’m not sure what changes you’d need make on the actual setup for the WP install (i havn’t done that myself – always used a webhost).

    If you’re using ports 8888 and 8889, then login to your router and forward those ports to whichever IP gets assigned to your IP (again just an example) 192.168.1.5, and see if you make any further progress… OR see below..

    Temporarily whilst getting things working(in a manner of speaking), you may find it easier to assign your IP(what’s provided via the router), DMZ.. to avoid the port forwarding, once you know everything works, turn it off, and work on the ports, it’ll at least make dealing with the ports a seperate setup, and you’ll be able to clearly see when ports are the underlying issue.

    DMZ in simple terms means don’t block or filter any ports/traffic(so it’s excluded from the routers firewall etc…) for the given IP (so don’t leave it turnt on – you have been warned)… 😉

    Thanks again for the reply.

    Yes I will need the outside world to see the blog by invitation only.

    I will be using this with customers as I develop their databases.

    I am going to trash what I have done so far [easier than edit] and reinstall from the start.

    I’ll post how it goes.

    greg

    Good Morning All,

    This is getting very frustrating. I still can not see my blog on Intranet or Internet.
    This just a personal blog to show progress on database development. It’s currently not a project I need to host outside.

    Here’s my configuration
    MAC Mini OS X 10.6.3
    MAMP 1.9
    WordPress 2.9.2

    I have managed to put WordPress [wp1] in the Library|WebServer|Documents folder and it works fine on local computer. When viewed on Lan or from outside all that appears is what looks like unformatted html.

    I have been trying different Port settings with no positive results. After placing the wp1 directory in it’s current location if I change the TCP port to anything other that 8888 Apache will not start.

    Currently I have my Airport router configured to redirect ports 8888 / 8889 to the computer hosting the site and MySQL.

    I have watched YouTube videos I found and saw one using port 80 but can not see how he did that.

    I am open to all and any suggestions as this has become a real personal challenge I am committed to win.

    Thanks, and boy is it raining down here in South Florida this Monday morning.

    greg

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Local Mac install doesn’t load CSS for networked computers’ is closed to new replies.