ngrok - secure introspectable tunnels to localhost
위의 페이지에서 ngrok을 다운받는다.
다운 받은 zip 파일의 압축을 푼다 (mac에서도 zip파일로 다운 됨)
[error]개발자의 신원을 확인할 수 없기 때문에 열기 불가
터미널 → 프로세스 종료
term에서 ngrok이 있는 폴더로 이동
windows
./ngrok.exe http 8080
mac or linux
- AuthToken값이 없을 때
./ngrok http 8080
ngrok http 8080
- AuthToken값이 있을 때
./ngrok http 8080 AuthToken값
ngrok http 8080 AuthToken값
ngrok config add-authtoken [Authtoken]
명령어로 나의 토큰을 설정가능하다
(이 방식으로는 제한 시간이 x)
ngrok - secure introspectable tunnels to localhost
대시 보드에서 토큰 확인가능
대시보드에서 그대로 복붙가능하니까 여기서 그대로 써도 좋다
Forwarding 에 있는 주소로 로컬을 사용할 수 있다.