This is a common problem in android.

The name of the issue says it all. Android fails to obtain an IP address from a wireless router: connection attempt fails. It goes through stages in an infinite loop: wifi重复执行以下操作

1.Obtaining IP address 获取ip地址

2.disconnecting 失去连接

3.scanning 搜索

After searching about this problem on internet, I found that many other people facing the same problem. But at last I found a solution for this problem and going to share here. Here’s the solution to Obtaing IP address Wifi problem on android:

The solution is to use a static IP for your WiFi connection, to do this:

From your android device, goto Settings > Wireless and networks > WiFi Settings > Click menu button (left) and select advanced.

设置路径:设置>无线网络>wifi设置>右键选择高级设置


You’ll see an option “use static IP” under IP settings section. Enable it and enter the following parameters.

修复wifi上网只要设置以下信息:

IP address : 192.168.1.253

Gateway: 192.168.1.1

Netmask: 255.255.255.0

DNS1: 8.8.4.4

DNS2: 4.4.4.4/8.8.8.8

This method works 100% when we tested it. 这是真的;不过俺试了,是连接上了,不过还是上不了网,再次取消用静态地址连接,magic wierd it work. enjoy it if you are the lucky guy as me.

================================================

以下木有尝试,留作参考

For samsung users, I have a pretty good trick which works very well.

When you have obtaining IP address problem,

1.Turn off wifi.

2.Open “Allshare”, then you will be asked to connect to a wifi network.

3.Then select the wifi network that you need to connect from the list opened.

Magically, you will be connected without any extra effort.This works 100% sure without fail.

You may also like -

转载:http://mhotspot.com/blog/fix-obtaining-ip-address-android-wifi-problem/

更多相关文章

  1. Android(安卓)Gradle Plugin指南(三)----依赖关系,Android库和多项
  2. Android之TelephonyManager类的使用案例
  3. Android之手机振动的设置
  4. Android设置拍照或者上传本地图片
  5. google 开发者自定义view的系列(创建view,绘制,交互,view的优化)
  6. Android的ProgressBar以及自定义进度条
  7. 我的Android进阶之旅------>Android视频录制小例子
  8. Android--利用selector设置Button
  9. Android(安卓)设置全屏显示

随机推荐

  1. Android(安卓)SVG矢量图/矢量动画、Vecto
  2. Flutter 与 Android 相互调用、传递参数
  3. ETC1压缩纹理格式详解
  4. android隐藏以及显示软键盘
  5. android个人错误,持续更新
  6. 开发人员的怨念:Android开发应用像噩梦
  7. Android中LiveData+Room+Paging简单实现
  8. android Widget-显示电量
  9. android 之 Attr的使用
  10. android圆形的ImageView