pradyotprksh/ip_address

Not able to find the Ip Address.

Closed this issue · 3 comments

AsyncSnapshot(ConnectionState.done, null, Not able to find the Ip Address., #0 NetworkRequest.getIpAddressJson

Hey, can you share the code which you are using? Not able to replicate it.

Closing this for now, until further response.

I fixed with this:

class MyHttpOverrides extends HttpOverrides {
@OverRide
HttpClient createHttpClient(SecurityContext? context) {
return super.createHttpClient(context)
..badCertificateCallback =
(X509Certificate cert, String host, int port) => true;
}
}

main() async {
HttpOverrides.global = MyHttpOverrides();