mopaready.blogg.se

Local web server mac connect over same wifi
Local web server mac connect over same wifi





For instance, with Rails, I had to add a binding flag: rails s -b 0.0.0.0. You might need to explicitly bind the IP when running your server command. However, you might need to do one more thing before you can connect to your local server. You’ll be typing it into your address bar, so I recommend editing it into a short word.ĭepending on your server settings, you might now be able to access your localhost server from xxxx.local:yyyy, where xxxx is your name from the previous step and yyyy is your server’s port number. Make a note of what xxxx says – this is your computer’s name. There may be a popup that asks you to confirm this action.įind the message near the top that says, “Computers on your local network can access your computer at: xxxx.local. On the right side of your Internet Sharing options, check iPhone USB.Įnable Internet Sharing by checking its checkbox. If the checkbox next to Internet Sharing is enabled, uncheck it. This should show your internet sharing controls on the right. Connecting iPhone to localhostĬonnect your iPhone to your computer via USB. Just make sure you have an iPhone and a Mac.

local web server mac connect over same wifi

I used this to access a Ruby on Rails app from my iPhone, but you could just as well be building with Node, Jekyll, Gatsby, or anything else. This tutorial will show you how to access a localhost server from an iPhone if you’re using a Mac.







Local web server mac connect over same wifi