Question

I thought I'd post this Q&A up because there is very little information about using middleman on windows (I am using windows 7, specifically), and I could not find a solution to this online but was able to figure it out myself.

When booting up the middleman server and receiving:

The Middleman is Standing Watch at http://0.0.0.0:4567

I am unable to view the webpage, simply, nothing at all loads. I turned off the firewall, eliminating it as a potential issue and also tried running the server on a different port. I still got nothing.

Was it helpful?

Solution

0.0.0.0 just stand for "all IPv4 IPs", in this case it means that the middleman server listens on port 4567 on all local IPs.

It's important to note that 0.0.0.0 is not an actual IP you can use in your browser. Instead, you can navigate to any of your actually assigned local IPs, e.g. 127.0.0.1 which is the local IP on your system.

Just using localhost doesn't work as Windows has IPv6 enabled by default (which has precedence before IPv4) and thus maps localhost to ::1, the local IPv6 IP. As Middleman only binds to the local IPv4 IPs, it doesn't answer on ::1.

OTHER TIPS

The answer was devastatingly simple in this case.

For some reason windows uses localhost as opposed to 0.0.0.0. So although it says standing watch at 0.0.0.0:4567 it is actually standing watch at localhost:4567 . You should be able to navigate to this page and see your middleman build.

The message is confusing which is why it is going to change in futur versions.

Try accessing localhost:4567 or 127.0.0.1:4567.

Generally however you might also consider rather running linux in a vm and use middleman there wich I find more comfortable.

for me this works "127.0.0.1:4567" using "localhost" dosen't work for some reason :) remember you can always change the port number if you want by using the port argument, like this "middleman --port=12345"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top