flutter
플러터 Dio url localhost 에러 관련
FaustK
2023. 12. 6. 16:24
SocketException (SocketException: OS Error: Connection refused, errno = 111, address = localhost ...
로컬 서버로 테스트하는 경우 이런 에러가 나는 경우
http://localhost:5000/api/product 이런 식으로 호출하고 있는 지 확인해야 한다.
cmd 또는 터미널 ipconfig (ifconfig) 명령어를 실행한 후 IPv4주소로 변경해준다.
http://localhost:5000/api/product -> http://192.168.xxx.xxx/api/product
Flutter SocketException (SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 51500)
I am Using strapi.io open Source Node.js Headless CMS this is my code for registerpage void _registerUser() async { http.Response response = await http.post('http://localhost:1337/auth/local/
stackoverflow.com