【问题标题】:How to programmatically configure IP? [duplicate]如何以编程方式配置 IP? [复制] 【发布时间】:2017-08-19 19:21:18 【问题描述】: 我想配置 Android 设备的 IP。 可能吗?如果是,有人可以为此提供教程吗? 请支持。 【问题讨论】: 欢迎来到 SO。这个网站不是用来推荐教程的。使用您的 google-fu 查找您想要的教程。 标签: java android 【解决方案1】: 您需要使用静态 IP。检查这些线程: How to configue a static IP address, netmask, gateway programmatically on Android 3.x or 4.x API for configuring static IP addresses in an Android application 【讨论】: