Localhost URL's Not Resolving On Local Development Network
-
I have a two-machine little wireless net at home. A Windows machine serves as a WP development server. When accessed from the other machine, a Mac, CSS,images, etc., are not found.
I assume this has to do with the fact that the refs to such things are absolute paths to files on the Windows machine, which are appearing as: “https://localhost/wordpress/……./style.css” .
Obviously, “localhost” is the Windows machine, and URLs like that aren’t resolving on the Mac (which is its own local host).
Things work if I hardcode IP-based URLs into the WP code.. But, there must be a better way. How can fix this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Localhost URL's Not Resolving On Local Development Network’ is closed to new replies.