I'm using http (dart package) to connect to a locally deployed springboot api, However, the application throws Connection refused error 111 and shows the wrong port
Tried opening the port to see if that helped, replaced local host with the computers ipm changed springboots port but the problem is still there.
The line that connects to the server
final response = await http.get('http://localhost:8080/api/v1/alltables');
console log error:
ERROR:flutter/shell/common/shell.cc(184)] Dart Error: Unhandled exception:
E/flutter (27342): SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 49588