본문 바로가기
IT/Tips.

local 서버를 외부에서 접속하고 싶을때(ngrok, afraid)

by 성준하이 2023. 12. 22.
반응형

라우터를 통해서 집 내부에 서버를 만들었을 경우

해당 서버는 집 내부 네트워크에서만 이용이 가능한것이 기본이다.

 

만약 외부에서 접근을 하고 싶다면 외부 네트워크와 포트포워딩을 하는 등 방법은 존재하지만
관리자 서버로 인해서 접근일 불가할 경우도 있다.

 

그럴 경우에 사용할수 있는 방법들 중 2가지를 소개하려고 한다.

 

ngrok

https://ngrok.com/

 

ngrok | Unified Application Delivery Platform for Developers

ngrok is a secure unified ingress platform that combines your global server load balancing, reverse proxy, firewall, API gateway and Kubernetes Ingress Controller to deliver applications and APIs.

ngrok.com

첫번째는 ngrok 이다.

 

예를들어 192.168.1.10:8080 으로 접속하던 local 서버 서비스가 있다면 해당 포트까지 특정 domainname으로 만들어준다.

자세한 셋팅은 사이트 내에서 확인이 가능하다.

 

afraid.org

https://freedns.afraid.org/

 

FreeDNS - Free DNS - Dynamic DNS - Static DNS subdomain and domain hosting

Free DNS Hosting, Dynamic DNS Hosting, Static DNS Hosting, subdomain and domain hosting. Dynamic update demonstration example (v2 interface) [~] $ curl https://sync.afraid.org/u/CyTXMbtq5cPnLjEg5vKHTPDE/ Updated demo.freshdns.com from 107.170.238.X to 50.2

freedns.afraid.org

두번째는 afraid.org 이다.

 

ngrok와 차이는 ip 자체를 dns를 설정해줄수 있다.

포트를 열어주기만 하면 어디든 접근이 가능하다.

반응형

'IT > Tips.' 카테고리의 다른 글

[Eclipse] Search 한 파일 클릭시 새롭게 창 띄우기  (23) 2024.02.18
CocoCut [동영상 저장 프로그램]  (26) 2024.01.02
Handbrake 사용법  (27) 2023.12.18
Json 한눈에 보기(vscode)  (38) 2023.11.16
eclipse 공백 표시  (51) 2023.06.10

댓글