#!/bin/bash # Smart Parking Finder - Network Access Script echo "🚗 Starting Smart Parking Finder for Network Access..." # Get local IP address LOCAL_IP=$(ifconfig | grep -E "inet.*broadcast" | head -1 | awk '{print $2}') echo "===============================================" echo "🌐 NETWORK ACCESS INFORMATION" echo "===============================================" echo "📱 Local Access: http://localhost:3000" echo "🌍 Network Access: http://$LOCAL_IP:3000" echo "===============================================" echo "" echo "📋 To access from other devices:" echo " 1. Make sure devices are on the same WiFi network" echo " 2. Use this URL: http://$LOCAL_IP:3000" echo " 3. Make sure macOS Firewall allows Node.js connections" echo "" echo "🔥 Starting development server..." echo "" # Navigate to frontend directory cd frontend # Start Next.js with network access npm run dev