본문 바로가기

Web Programming/Web PR

Ngrok 로컬 네트워크 연결

우리의 로컬 주소를 Ngrok를 통해 연동하여 외부에서 접근할 수 있도록 할 수 있다

너무 간단하고 유용하여 정식 배포할 프로젝트가 아닐 때 이용하면 유용할 듯하다

 

#1 Ngrok 다운로드하기

https://ngrok.com/

 

ngrok - secure introspectable tunnels to localhost

Spend more time programming. One command for an instant, secure URL to your localhost server through any NAT or firewall.

ngrok.com

해당 페이지에서 Ngrok를 다운로드

 

#2 로컬에서 프로젝트 실행
#3 연동하기

Ngrok.exe 실행 후 원하는 포트 입력

 $ ngrok http 5000

다음과 같이 특정 주소를 통해 로컬에 연결이 가능하도록 지정해준다

 

#4 무제한 사용하기(8시간 체험판이 아닌)

https://dashboard.ngrok.com/get-started/setup

 

ngrok - secure introspectable tunnels to localhost

 

dashboard.ngrok.com

 

해당 옵션으로 들어가서 authToken을 복사하기

$ ngrok authtoken "토큰"
$ ngrok http 포트번호