How can I set up my local machine to broadcast a localhost website to other computers on the network, including iphones on the WIFI network?

Great question!

Port 80 is generally the port where OTHER machines can access local stuff on your machine.

But your Rails typical dev local port is 3000.

So what do you do? 

You can put into terminal: 

   echo "rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 3000" | sudo pfctl -ef -

This will create a redirect for your port 3000 to port 80.

| Back

Footerfull