`
zgpeace
  • 浏览: 20623 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论

修复android获取ip地址失败 Fix Obtaining IP Address Android WiFi Problem

阅读更多

 

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.

 

 

  • 大小: 18.6 KB
分享到:
评论

相关推荐

    Android代码-安卓WiFi密码查看器

    WiFi_Tool 安卓WiFi密码查看器 License The MIT License (MIT) Copyright (c) 2015 WuHaojie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...

    Android代码-智能家居系统(安卓端)

    智能家居系统(安卓端) 介绍 安卓端通过HTTP心跳连接实时获取最新数据,并展示于主界面;...Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated do

    Android代码-Android

    Android BLE SDK for Android (v4.3 or above) to work with our BLE development boards. Tested on Nexus 4, 5 and 7 with Android version 4.4.4 and 5.0. Resources Android API 18 (Android 4.3) BLE ...

    获取当前位置—Obtaining the Current Location.

    在Android平台上获取设备当前位置是一项常见的需求,可以通过LocationManager类实现。LocationManager类是Android系统提供的用于管理位置信息的API。为了获取位置更新,应用需要使用LocationManager的特定方法注册...

    Android代码-知乎Android客户端启动页的视差动画效果实现

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, ...

    WifiStateListener:获取wifi状态及wifi连接详细状态DetailedState

    - OBTAINING_IPADDR:获取IP地址过程中。 - CONNECTING:正在连接到网络。 - CAPTIVE_PORTAL_CHECK:检测是否为 captive portal(通常在网络初次连接时出现)。 - BACKGROUND_SCAN:后台扫描网络。 - SCANNING:正在...

    Android代码-Android裁剪图像功能

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, ...

    Android代码-PixelSlide

    PixelSlide ...Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software withou

    Android代码-Microphone

    Android Microphone (c) 2010-2011 Gaz Davidson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to ...

    Android代码-Fab 和 Dialog 之间的变换

    **Fab and Dialog Morphing Animation on Android** It's simple but also flexible to use, hope you enjoy it! Inspired by Plaid project and some code based on it. See the description of the implementation...

    Android代码-WaveProgressView

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, in

    Android代码-Chess Clock App

    Chess Clock App Description: A game-clock app for the Android mobile devices. Useful in blitz chess games and ...Permission is hereby granted, free of charge, to any person obtaining a copy of this soft

    从冰山获取淡水 obtaining fresh water from icebergs.docx

    标题中的“从冰山获取淡水”是指利用冰山上的冰雪资源来解决淡水资源短缺的问题。这一概念在过去可能被视为一种不切实际的想法,但在科学家警告人类可能会先耗尽淡水再耗尽食物的情况下,许多国家现在正认真考虑这种...

    Android代码-android-samples

    Android Samples Sample Android code for the tutorials on my blog. Developed By Mike Gouline The MIT License (MIT) Copyright (c) 2015 Mike Gouline Permission is hereby granted, free of charge, to ...

    Android代码-Axel(XMLEditorViewer)

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, ...

    domain user password obtaining

    domain user password obtaining

    Android代码-petablox

    There are currently 2 ways of obtaining and using Petablox: Build Petablox from source Obtain a binary distribution Both of the above steps are described below: Build from Source To build Petablox, ...

    Obtaining a stack trace in C upon SIGSEGV

    ### 获取 C 语言程序在 SIGSEGV 时的堆栈轨迹 #### 代码实现 本文档介绍了一种在不使用调试器的情况下获取 C 或 C++ 程序崩溃时堆栈轨迹的方法。此方法尤其适用于那些希望在程序崩溃时能够追踪到错误发生位置的...

    Android代码-MovieGuide

    Android app that lists popular/highest-rated movies, shows trailers and reviews. This app showcases the MVP pattern, RxJava, Dagger 2 and Uncle Bob Martin's Clean Architecture approach. Optimized for ...

    Android代码-ScreenInfo

    Android device. Copyright (c) 2011 Michael J. Portuesi (http://www.jotabout.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated ...

Global site tag (gtag.js) - Google Analytics