How to get device IP in Dart/Flutter

前端 未结 8 815
孤城傲影
孤城傲影 2021-02-13 21:01

I am currently writing an app where the user needs to know the IP address of their phone/tablet. Where would I find this information?

I only want to know what the local

8条回答
  •  后悔当初
    2021-02-13 22:00

    Have you tried the device_info package?

    There is an example on querying device information in https://pub.dartlang.org/packages/device_info#-example-tab-

提交回复
热议问题