{n_u}.log
로그인
{n_u}.log
로그인
10.0.2.2 Android 에뮬레이터 로컬 호스트 - Flutter
iseon_u
·
2023년 4월 19일
팔로우
0
10.0.2.2
android
flutter
localhost
vm
0
Flutter
목록 보기
3/4
10.0.2.2 Android 에뮬레이터 로컬 호스트
How to point to localhost:8000 with the Dart http package in Flutter?
Android 가상 기기에서 사용되는 특수한 IP
Android 에뮬레이터 내부에서 호스트 컴퓨터를 연결하려는 경우 사용
사용 예시
Flutter 애플리케이션이 Android 에뮬레이터를 사용하여 애플리케이션을 실행 중인경우
백엔드 서버가 로컬 호스트에서 실행 중인 경우
http://10.0.2.2:PORT
를 사용하여 로컬 호스트에 연결
겪은 에러
http://localhost
에 연결하면
ClientSocketException
발생
iseon_u
🧑🏻💻 Hello World!
팔로우
이전 포스트
Widget - Flutter
다음 포스트
Widget Lifecycle - Flutter
0개의 댓글
댓글 작성