Make Mac into a personal WiFi hotspot for the local MAMP-based server?

Michael

I usually do a lot o development/testing on my local Mac / MAMP installation and then accessing it from my smartphone/tablet by just entering the proper IP address when the devices are on the same network.

However, I'm also often in a situation that I need to demo or test my web apps in places where there is no internet and my devices are not on the same network. What could I do then?

So again what I'd like to do is the following:

  1. Have my Mac acting as a local server (MAMP)
  2. Have my Mac (seemingly) act as a hotspot broadcasting a network via WiFi
  3. Be able to connect to that network (via WiFi) from my iPhone/iPad
  4. Access my Mac's MAMP local sites via the browser from my iPhone/iPad (without "Internet")

Again there is no "real" internet or other APs involved. It would be ideal if my Mac could also act as a DHCP server (so automatically assign IPs to devices connected via WiFi), but if thats too complex then I'll just enter the static IPs manually. BTW I don't need any fancy stuff like local domain names - just IPs are fine :)

Any ideas how one could accomplish something like this? If needed or it makes this workflow easier or quicker - I'm also not beyond buying other software to accomplish this.

BTW for example I had high hopes for this solution but it seems incomplete since my devices are still reporting that the network has no internet and are refusing to connect. Built in Mac connection sharing might also help somehow (not yet sure how?) but what connection to share if they're all offline?

Michael

I'll post my partial answer here - it will hopefully benefit somebody in the future.

In the end it was pretty easy:

  1. go to the Sharing panel in System Preferences, click on the Edit button by the first Computer Name edit box and then change the Local Hostname to something short, nice and readable (like for example web.local)
  2. click on the WiFi icon on you'r Mac's status bar menu and select Create Network... on the bottom of the menu, give your new WiFi network a name (+ other option if you'd like) and click create
  3. don't forget to fire-up MAMP (or any other server you might be using)
  4. and voila - you can now see the new WiFi network from your iOS/Mac devices, connect to it and use the previously created address (i.e. http://web.local) to access your MAMP server (my mistake previously was that I wanted to take the harder/universal way with local DHCP/DNS servers and IP addresses - but this is much easier and the OSX does everything for you)

Its unfortunately partial because it works only with Apple's Mac/iOS devices - other devices (have tried it with Android) will simply not see the personal network you've created (I assume details are being transmitted via Apple's Bonjour anyway so thats why). But better something than nothing.

But its still pretty cool - I can now connect my iPhone and iPad to the MAMP running on my Mac even without being connected to the Internet or having a DHCP-enabled AP taking care of the networking details.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Make Mac into a personal WiFi hotspot for the local MAMP-based server?

From Dev

Get local address(server) of wifi hotspot after getting connected to it

From Dev

Unity's Master Server on local WiFi with Android's Mobile Hotspot

From Dev

Spoofing wifi hotspot with fake MAC Address

From Dev

Make MAMP local development environment externally accessible?

From Dev

MySQL Workbench connection to local network MAMP server

From Dev

Flag Wifi as mobile hotspot based on its name from code

From Dev

Flag Wifi as mobile hotspot based on its name from code

From Dev

How can I make my WiFi hotspot secure?

From Dev

How to configure a Hyper-V server with VMs, PMs and a wifi hotspot

From Dev

While using phones hotspot , should the wifi mac address same as the dhcp mac address?

From Dev

Cisco VPN Mac OSX Connections fails when tethered to iPhone Personal Hotspot

From Dev

Create WiFi hotspot on ubuntu

From Dev

Create WiFi hotspot on ubuntu

From Dev

wifi hotspot start up

From Dev

Wifi hotspot switching on/off

From Dev

Connecting to WiFi Hotspot on 17.04

From Dev

WiFi hotspot in 17.10

From Dev

Encrypting a Wifi Hotspot

From Dev

Wifi hotspot automatically activating

From Dev

Ubuntu 14.04 Server - WiFi WPA2 Personal

From Dev

Ubuntu 14.04 Server - WiFi WPA2 Personal

From Dev

Python server only working on local wifi

From Dev

WiFi tethering and local server on pc desktop

From Dev

How to make my laptop a WiFi Hotspot (using internet from USB 3G device)

From Dev

Localhost MAMP Mac

From Dev

Wifi Hotspot creation fails in oreo

From Dev

WiFi Hotspot Disable Neighbor discovery

From Dev

WIFI - Disable Hotspot Login Screen

Related Related

HotTag

Archive