이제 ngrok를 이용하여 직접 http url을 만들어 보겠습니다. 만약 로컬에서 작업 중인 서버가 5500 포트이라면 아래와 같은 명령어를 실행합니다.
$ ngrok http 5500
그럼 http와, https의 랜덤의 도메인 주소가 자동으로 만들어 줍니다. 그래서 2개 중에서 선택하여 사용하시면 되는데 안전하게 https를 사용하시는 게 좋습니다.
ngrok by @inconshreveable
Session Status online
Version 2.3.40
Region United States (us)
Web Interface http://127.0.0.1:4040
Forwarding http://04f2-118-32-171-134.ngrok.io -> http://localhost:5500
Forwarding https://04f2-118-32-171-134.ngrok.io -> http://localhost:5500