“无法获取 IP 地址(Failed to Obtain IP Address)”是您在Android手机上可能遇到的常见网络错误。当您的手机无法从路由器获取 IP 地址时会出现此错误。这通常是您的路由器的问题,但有时您的手机可能是问题。
失败的 DHCP 服务器(A failed DHCP server)、轻微的网络故障、有问题的缓存文件和MAC地址过滤是问题的最常见原因。我们将引导您完成可能解决您的网络问题的步骤。
重启你的路由器(Reboot Your Router)
您的路由器的小故障通常是您的设备无法获取 IP 地址的原因。这通常会导致Android(Android)手机出现“无法获取 IP 地址”错误。
解决这些小问题的一种方法是重新启动路由器。这样做会关闭路由器的功能,包括分配 IP 地址的DHCP,并重新启动所有这些功能。
您可以通过按下设备上的电源(Power)按钮来关闭 Wi-Fi 路由器。如果您的路由器没有提供电源(Power)按钮,请使用电源插座开关关闭路由器,然后再打开。
对于某些路由器,您可以(you can perform a reboot)通过在 Web 浏览器中访问路由器的设置页面并选择重启选项来执行重启。
打开和关闭飞行模式以解决获取 IP 地址错误(Turn Airplane Mode On and Back Off to Resolve the Obtain IP Address Error)
当您遇到诸如“无法获得IP 地址(IP Address)”之类的网络问题时,值得将手机的飞行模式(airplane mode)打开然后再关闭。这样做会断开您的手机与所有网络的连接,然后重新连接到所有网络。这应该可以解决您设备的大多数小网络问题。
您可以通过从手机屏幕顶部下拉并选择飞行模式来启用飞行模式(Airplane mode)。然后,等待五秒钟,然后通过点击飞行模式(Airplane mode)磁贴关闭模式。
启用和禁用飞行模式后,您的手机应该会成功连接到您的网络。
忘记并重新连接到 Wi-Fi 网络(Forget and Reconnect to the Wi-Fi Network)
如果您的Android(Android)手机仍然出现“获取 IP 地址失败”错误,请尝试忘记并重新加入您的 Wi-Fi 网络。这解决了任何保存的网络(saved network)配置问题。
- 在您的 Android 手机上打开设置。(Settings)
- 在设置中导航到Wi-Fi 和网络(Wi-Fi & Network)> Wi-Fi。
- 选择 Wi-FI 网络旁边的齿轮图标。
- 在您的网络页面上点击忘记。(Forget)
- 返回Wi-Fi屏幕,选择您的无线网络。
- 输入您的网络密码,然后选择底部的连接。(Connect)
您的手机将获取 IP 地址并成功连接到您的网络。
清除 Android 上的 Google Play 服务缓存(Clear the Google Play Services Cache on Android)
Google Play Services是一款 Android 实用程序,可为您安装的应用程序和系统功能提供核心功能。当您遇到系统级问题时,例如“无法获得IP 地址(IP Address)”,值得清除此实用程序的缓存文件。
由于各种原因,缓存文件可能已损坏或出现问题。清除文件(Clearing the files)应该可以解决您的问题并让您成功连接到无线网络。
- 在手机上启动设置。(Settings)
- 前往应用和通知(Apps & notifications)>查看所有应用(See all apps)> Google Play 服务(Google Play services)。
- 选择存储和缓存(Storage & cache)选项。
- 选择清除缓存(Clear cache)以清除实用程序的缓存文件。
- 重新启动手机,然后将手机连接到网络。
在您的 Android 手机上使用静态 IP 地址(Use a Static IP Address on Your Android Phone)
您的Android手机会从路由器的DHCP功能中接收到唯一的 IP 地址。如果该功能停止工作或出现问题,您的手机将无法获得 IP 地址,从而导致“无法获取 IP 地址”错误。
一种可能解决此问题的方法是在您的Android手机上使用静态 IP 。(use a static IP)这样,当您将手机连接到无线网络时,您的手机就已经知道要使用的 IP。
以下是在Android(Android)上配置静态 IP 的方法:
- 打开手机上的设置。(Settings)
- 前往Wi-Fi 和网络(Wi-Fi & Network)> Wi-Fi并选择您的网络。
- 选择屏幕顶部的铅笔图标。
- 展开高级选项(Advanced options)菜单并从IP 设置(IP settings)菜单中选择静态(Static)。
- 在IP 地址(IP address)字段中输入192.168.1.20 ,在(192.168.1.20)网关(Gateway)字段中输入192.168.1.1(您的路由器的 IP 地址),在 DNS 1 字段中输入 8.8.8.8,在DNS(DNS 1) 2字段(8.8.8.8)中输入(DNS 2)8.8.4.4。然后,点击保存(Save)以保存您的设置。
- 尝试将手机连接到 Wi-Fi 网络。
关闭 MAC 地址的 MAC 过滤器(Turn Off MAC Filter for Your MAC Address)
大多数路由器都提供 MAC 地址过滤(routers offer a MAC address filtering)选项,您可以使用它来阻止特定设备连接到您的网络。您的Android手机显示“无法获取 IP 地址”错误可能是由于您的手机位于MAC过滤器列表中。
这是不太可能发生的情况,尤其是如果您从未在路由器上阻止过任何MAC地址,但值得检查以防万一。您必须查看您的MAC阻止列表并从那里删除您的Android手机。(Android)完成此操作后,您的手机将连接到您的网络并获取 IP 地址。
- 通过在 Web 浏览器的地址栏中输入192.168.1.1访问路由器的设置页面。这是访问路由器(most common IP address to access a router’s)设置页面的最常用 IP 地址,但这可能不适用于所有路由器。如果此 IP 地址未打开设置页面,请查阅您的路由器手册。
- 选择路由器设置页面顶部的无线设置。(Wireless Settings)您的路由器可能为此选项使用了不同的名称,但它应该足够相似以便您找到它。如果您的路由器选项未出现在顶部,它们可能位于设置页面的左侧或右侧边栏中。
注意:(Note: )我们在示例中使用 iball 300M MIMO Wireless-N路由器。您的路由器界面看起来会有所不同,但您应该会看到一个用于访问无线配置的类别,该类别具有我们在本文中介绍的相同设置。
- 从左侧边栏中选择无线 MAC 过滤。(Wireless MAC Filtering)
- 在选择 SSID(Select SSID)字段中选择您的 Wi-Fi 网络,在MAC 地址过滤器(MAC Address Filter)菜单中选择禁用,然后选择(Disable)确定(OK)。
- 将您的Android手机连接到无线网络。
将网络的加密方法更改为 WPA2-PSK(Change the Encryption Method to WPA2-PSK for Your Network)
大多数路由器提供多种加密方法(multiple encryption methods)来保护您的网络。有时(Sometimes),其中一些方法与您的Android手机不兼容,从而导致“无法获取 IP 地址”错误。
在这种情况下,请将路由器的无线安全模式更改(change your router’s wireless security mode)为广泛兼容的模式,例如WPA2-PSK。那应该可以解决您的问题。
- 在网络浏览器中打开路由器的设置页面,通常位于192.168.1.1 。同样(Again),这是打开路由器设置页面最常用的 IP 地址。如果这对您不起作用,请查阅路由器手册以找到正确的 IP 地址。
- 选择顶部的无线设置。(Wireless Settings)如果你没有看到这个选项,它可能在你的路由器上被称为不同的东西,但它应该是类似的东西。此外,如果您在顶部没有找到该选项,请在左侧或右侧边栏中查找该选项。
- 从左侧边栏中选择无线安全。(Wireless Security)
- 在右侧的安全模式(Security Mode)下拉菜单中选择WPA2-PSK 。
- 选择底部的确定以保存您的设置。(OK)
重置 Android 手机上的网络设置(Reset Network Settings on Your Android Phone)
如果您的Android手机仍然显示“无法获取 IP 地址”错误,则您的手机的网络设置可能存在问题。您可以通过执行网络重置来修复这些设置。
网络重置会删除所有与网络相关的设置,并允许您重新配置它们。这是你可以做到的。
- 打开手机上的设置。(Settings)
- 导航到设置中的系统(System)>重置选项(Reset options)。
- 点击重置 Wi-Fi、手机和蓝牙(Reset Wi-Fi, mobile & Bluetooth)。
- 选择重置设置(Reset settings)。
- 重置设置后,将手机连接到 Wi-Fi 网络。
让你的安卓设备成功获取IP地址(Make Your Android Device Successfully Acquire an IP Address)
Android 的“获取 IP 地址失败”错误会阻止您在手机上访问互联网。如果您遇到此问题并且难以为您的手机获取 IP 地址,请尝试上述方法。
然后,您的手机将成功连接(phone will then successfully connect)到您的网络,允许您访问互联网。
How to Fix the “Failed to Obtain IP Address” Error on Android
“Failed to Obtain IP Address” is a common network error you might experience on your Android phone. This error occurs when your phone can’t acquire an IP address from your router. This is often an issue on your router, but sometimes your phone can be the problem.
A failed DHCP server, minor network glitches, problematic cache files, and MAC address filtering are the most common causes of the issue. We’ll walk you through the steps to potentially resolve your network problem.
Reboot Your Router
Your router’s minor glitches are often why your devices can’t acquire an IP address. This usually results in a “Failed to Obtain IP Address” error on an Android phone.
One way to get around these minor problems is to restart your router. Doing so turns off your router’s features, including DHCP that assigns IP addresses, and restarts all these functions.
You can power off your Wi-Fi router by pressing the Power button on the device. If your router offers no Power button, use the power socket switch to turn your router off and then back on.
With certain routers, you can perform a reboot by accessing the router’s settings page in your web browser and selecting the reboot option.
Turn Airplane Mode On and Back Off to Resolve the Obtain IP Address Error
When you experience a network problem like “Failed to Obtain IP Address,” it’s worth turning your phone’s airplane mode on and then back off. Doing so disconnects your phone from all your networks and then reconnects to all networks. This should fix most minor network problems with your device.
You can enable airplane mode by pulling down from the top of your phone’s screen and selecting Airplane mode. Then, wait for five seconds and turn the mode back off by tapping the Airplane mode tile.
After enabling and disabling airplane mode, your phone should successfully connect to your network.
Forget and Reconnect to the Wi-Fi Network
If you still get a “Failed to Obtain IP Address” error on your Android phone, try forgetting and rejoining your Wi-Fi network. This resolves any saved network configuration problems.
- Open Settings on your Android phone.
- Navigate to Wi-Fi & Network > Wi-Fi in Settings.
- Select the gear icon next to your Wi-FI network.
- Tap Forget on your network’s page.
- Back on the Wi-Fi screen, select your wireless network.
- Type your network’s password and choose Connect at the bottom.
Your phone will acquire an IP address and successfully connect to your network.
Clear the Google Play Services Cache on Android
Google Play Services is an Android utility that provides core functionality to your installed apps and system functions. When you experience system-level problems, like “Failed to Obtain IP Address,” it’s worth clearing this utility’s cache files.
The cache files may have gone corrupt or become problematic for various reasons. Clearing the files should likely resolve your problem and let you successfully connect to your wireless networks.
- Launch Settings on your phone.
- Head to Apps & notifications > See all apps > Google Play services.
- Select the Storage & cache option.
- Choose Clear cache to clear the utility’s cache files.
- Restart your phone, and connect your phone to your network.
Use a Static IP Address on Your Android Phone
Your Android phone receives a unique IP address from your router’s DHCP feature. If that feature ever stops working or becomes problematic, your phone gets no IP address, resulting in a “Failed to Obtain IP Address” error.
One way to potentially fix that is to use a static IP on your Android phone. This way, your phone already knows what IP to use when you connect your phone to your wireless network.
Here’s how to configure a static IP on Android:
- Open Settings on your phone.
- Head to Wi-Fi & Network > Wi-Fi and select your network.
- Select the pencil icon at the top of your screen.
- Expand the Advanced options menu and choose Static from the IP settings menu.
- Enter 192.168.1.20 in the IP address field, 192.168.1.1 (your router’s IP address) in the Gateway field, 8.8.8.8 in the DNS 1 field, and 8.8.4.4 in the DNS 2 field. Then, tap Save to save your settings.
- Try connecting your phone to your Wi-Fi network.
Turn Off MAC Filter for Your MAC Address
Most routers offer a MAC address filtering option that you can use to block specific devices from connecting to your network. Your Android phone displaying a “Failed to Obtain IP Address” error could result from your phone being on the MAC filter list.
This is an unlikely scenario, especially if you’ve never blocked any MAC addresses on your router, but it’s worth checking just in case. You’ll have to review your MAC block list and remove your Android phone from there. Once you’ve done that, your phone will connect to your network and get an IP address.
- Access your router’s settings page by entering 192.168.1.1 in your web browser’s address bar. This is the most common IP address to access a router’s settings page, but this may not work with all routers. Consult your router’s manual if this IP address doesn’t open the settings page.
- Select Wireless Settings at the top of the router’s settings page. Your router might be using a different name for this option, but it should be similar enough for you to locate it. If your router options don’t appear at the top, they might be in the left or right sidebar on the settings page.
Note: We’re using an iball 300M MIMO Wireless-N router in our examples. Your router’s interface will look different, but you should see a category for accessing wireless configuration that features the same settings we’re covering in this article.
- Choose Wireless MAC Filtering from the sidebar on the left.
- Select your Wi-Fi network in the Select SSID field, choose Disable in the MAC Address Filter menu, and select OK.
- Connect your Android phone to your wireless network.
Change the Encryption Method to WPA2-PSK for Your Network
Most routers offer multiple encryption methods to secure your network. Sometimes, some of these methods aren’t compatible with your Android phone, thus causing the “Failed to Obtain IP Address” error.
In this case, change your router’s wireless security mode to something widely compatible, like WPA2-PSK. That should resolve your issue.
- Open your router’s settings page, usually located at 192.168.1.1, in your web browser. Again, this is the most common IP address to open a router’s settings page. If this doesn’t work for you, consult your router’s manual book to find the correct IP address.
- Select Wireless Settings at the top. If you don’t see this option, it might be called something different on your router, but it should be something similar. Also, look for the option in the left or right sidebar if you don’t find it at the top.
- Choose Wireless Security from the sidebar on the left.
- Select WPA2-PSK in the Security Mode drop-down menu on the right.
- Select OK at the bottom to save your settings.
Reset Network Settings on Your Android Phone
If your Android phone still displays a “Failed to Obtain IP Address” error, your phone’s network settings likely have issues. You can fix these settings by performing a network reset.
A network reset erases all your network-related settings and allows you to re-configure them. Here’s how you can do that.
- Open Settings on your phone.
- Navigate to System > Reset options in Settings.
- Tap Reset Wi-Fi, mobile & Bluetooth.
- Choose Reset settings.
- Connect your phone to your Wi-Fi network when your settings are reset.
Make Your Android Device Successfully Acquire an IP Address
Android’s “Failed to Obtain IP Address” error prevents you from accessing the internet on your phone. If you ever experience this issue and struggle to get an IP address for your phone, try out the methods outlined above.
Your phone will then successfully connect to your network, allowing you to access the internet.