10.0.2.2 Android 에뮬레이터 로컬 호스트 - Flutter

iseon_u·2023년 4월 19일
0

Flutter

목록 보기
3/4
post-thumbnail

10.0.2.2 Android 에뮬레이터 로컬 호스트


How to point to localhost:8000 with the Dart http package in Flutter?

  • Android 가상 기기에서 사용되는 특수한 IP
  • Android 에뮬레이터 내부에서 호스트 컴퓨터를 연결하려는 경우 사용

사용 예시

  1. Flutter 애플리케이션이 Android 에뮬레이터를 사용하여 애플리케이션을 실행 중인경우
  2. 백엔드 서버가 로컬 호스트에서 실행 중인 경우
  3. http://10.0.2.2:PORT 를 사용하여 로컬 호스트에 연결

겪은 에러

profile
🧑🏻‍💻 Hello World!

0개의 댓글