시뮬레이터에서 Host IP 주소

이짜젠·2021년 7월 18일
1

시뮬레이터로 띄운 IOS/AOS에서 host PC의 서버로 요청을 보내고싶을때가 종종 있다.
ex. host PC(= localhost)의 웹서버로 요청날리기

IOS/AOS에서 host PC의 IP주소는 다음과 같다.

모바일 OSHost PC 주소(=localhost)
AOS10.0.2.2
IOS127.0.0.1

참고

https://stackoverflow.com/questions/5528850/how-do-you-connect-localhost-in-the-android-emulator
https://stackoverflow.com/questions/8648373/iphone-simulator-connect-to-host-computer

profile
오늘 먹은 음식도 기억이 안납니다. 그래서 모든걸 기록합니다.

0개의 댓글