본문 바로가기
서버/Server

[Server]Ngrok으로 아무런 설정 없이 외부에서 간단한 파일 공유

by jamong1014 2022. 7. 17.
반응형
 

ngrok - Online in One Line

Zero Trust Add SSO, Mutual TLS, IP Policy, and webhook signature verification.

ngrok.com

로그인하고 설치한다음 토큰으로 인증해주시면 사용 가능합니다.

 

 

ngrok - secure introspectable tunnels to localhost

 

dashboard.ngrok.com

./ngrok authtoken 'My token'

토큰 인증 명령어


ngrok http "file:///내부 파일 경로" 명령어 실행

./ngrok http "file:///내부 파일 경로"

예) ./ngrok http "file:///C:\Users\Jung\Desktop\My File\프로그램\ngrok"

 

외부에서 접속한 모습

굳이 NAT 안쪽에서 포트포워딩 하지 않아도 리버스 프록시 원리를 통해 Ngrok 전용 터널을 이용해서 포워딩 할 수 있습니다.

 

반응형

댓글