Slow middleman server over network

I am basically having the exact same issue as described in this thread: https://github.com/middleman/middleman/issues/1118

My middleman server is running on my Mac laptop. That laptop is accessible from other computers on the network. When I try to access the middleman site through other computers I get a solid 15 - 20 second delay. After the initial delay, subsequent requests are pretty snappy but if not accessed for a few minutes I get the delay again.

The thread basically says to use the :DoNotReverseLookup option for webrick but I notice that that already seems to be specified by middleman: https://github.com/middleman/middleman/blob/master/middleman-core/lib/middleman-core/preview_server.rb

Does anyone else have this problem?

Am I correct that the DoNotReverseLookup option is already in effect for middleman v4?

In a related thread someone said adding the IP of the network computer to the hosts file of the computer running the middleman server could work: http://stackoverflow.com/a/7048085
Anyone tried this? I’m not sure off hand how to achieve that.

Just reporting back that adding the IP of the network computer to the hosts file worked perfectly. I’m getting near instantaneous refresh in the browser after editing files over the network.

My middleman server was running on a Mac and I had assigned static ips to all the computers on my network. So, basically I just added a line to /private/etc/hosts like below:

192.168.1.3 chromebook