Not able to find the Ip Address.
Closed this issue · 3 comments
bugrevealingbme commented
AsyncSnapshot(ConnectionState.done, null, Not able to find the Ip Address., #0 NetworkRequest.getIpAddressJson
pradyotprksh commented
Hey, can you share the code which you are using? Not able to replicate it.
pradyotprksh commented
Closing this for now, until further response.
bugrevealingbme commented
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();