본문 바로가기

개발/PHP, Mysql

Laravel 외부 접속 세팅

1. 현재 자신의 IP 찾기
    - OSX : ifconfig
    - Window : ipconfig

2. 프로젝트 디렉토리 콘솔 접속

    - command : php artisan serve --host IP주소

    - command : php artisan serve --host IP주소 --port port

 

3. 같은 네트워크에 접속한 디바이스
    - http://ip주소:8000

    - http://ip주소:port