Hi guys,
I spend the last nights on figuring out how to get USB Reverse Tethering running.
My success story setup:
- Router: Normal Internet Router with Ethernet and Wifi
- Phone: LG Optimus G E975 (original ROM !!!, rooted)
- PC: Win 7
Network configuration from top (=WWW) to bottom (=Android Phone):
[WAN Line 1]: Connecting external network (internet) to my router
...[Device 1]: Router; connecting external network (x.x.x.x) to internal network (10.0.0.x, subnet 255.255.255.0)
......[Eth. Line 2]: LAN connection from Router [IP: 10.0.0.138] to PC [IP: 10.0.0.1]
.........[Device 2]: PC running Win 7 - Create a bridge (instruction see below - this is the master trick !)
............ [USB/Eth. Line 3]: Connecting PC with Phone in USB Tethering mode
............... [Device 3]: Android Phone [config: IP: 10.0.0.101, default gateway: 10.0.0.138, DNS1: 10.0.0.138]
Creating a bridge on PC Win 7:
Basic situation on the PC would be such as:
- if you connect PC to Router - this is Physical Ethernet Port with IP let's say 10.0.0.1/24 => network 1: 10.0.0.x
- if you connect Phone to PC - this is RNDIS (USB) Ethernet Port with IP let's say 192.168.42.129/24 => network 2: 192.168.42.x
- if you know want to get from network 1 (Phone to PC) to network 2 (PC to Router and to Internet) the PC must do a routing function - if not - the whole thing will fail.
Pretty Easy Solution to overcome routing problem/risk:
- Create a bridge between Physical Ethernet Port and RNDIS Ethernet Port
- How to: Mark both adapters (Physical Eth. and UBS Eth.) => right click => "German: Verbindung überbrücken" (engl.: Bridge connection or similar)
- Now the PC melts both, the Physical Eth. Port and the USB-Eth.-Port to only 1 Ethernet Port! (configure IP: 10.0.0.1)
This means:
- We can work with only 1 network, PC has no router function, Android Phone can directly ping Router because now it is in the same network 10.0.0.x
- Router's IP 10.0.0.138/24 => works as gateway and DNS1 for all devices in network 10.0.0.x
- PC's bridge Eth. port IP 10.0.0.1/24, configure default gateway and DNS1 => 10.0.0.138 (Router)
- Phone's IP 10.0.0.101/24, configure default gateway and DNS1 => 10.0.0.138 (Router)
Test it:
- ping PC on 10.0.0.1
- ping Router on 10.0.0.138 (if that works you can already open a bottle of vine )
- ping IP from external network (internet): e.g. xda-developers.com-Server-IP
- ping a domain if address resolution (DNS-server) works: e.g. www.xda-developers.com
If all that works - enjoy USB Reverse Tethering on your Android phone.
Many Apps don't work without Wifi ...
=> for that install Xposed Framework + Xposed Fake Wifi Connection
=> this makes an App believe Wifi is connected
enjoy
------------------------------------------------------------------------------------------
Now comes the BUT:
- This works fine with LG-phone + original ROM + root!
- This DOES NOT work with LG-phone + Cyanogen Mod 10.2 ROM + root!
I even found the problem why it fails but I can't solve it:
[Using Original ROM]:
- From LG-Phone I can ping PC or Router or external IP immediately after setup (PC, Router, Internet-IP)
[Using CM 10.2 ROM]:
- From LG-Phone I cannot ping PC, I cannot ping Router - all devices are in the same network!
- If I know give a 1st ping from another device, e.g. PC => LG-Phone - then I can also ping back from LG-Phone
- It seems as LG-Phone can only ping 'back' once it has received a ping from another device - why that?
- The reason can be found in the ARP-table - which lists IP-address to physical MAC-address of network device:
normal entry should look like: 10.0.0.1 (PC) 02:93:5f:2c:92:34 (=> ping is possible to this device)
incomplete entry looks like: 10.0.0.138 (Router) ..................................... (=> ping not possible, because of missing mac-address)
- If I now manually create an ARP-entry such as:
busybox arp -s 10.0.0.138 02.03:7f:92:12:33
then the thing works for this device! - I can successfully ping and have connection
- Summary: If LG-phone gets a ping from another network device - the LG-Phone collects the MAC-address - and after that the ARP-entry is OK - then LG-Phone can ping the device back and reach it via Ethernet
The problem now is:
- I cannot mantain the ARP table for all IP-addresses on the whole world
- and: I cannot wait to get a ping from any other device in the world - until I can communicate back
Does anybody have an idea what goes wrong here?
Is it a security related problem?
Or is it rather a network-problem (ARP resolution) caused by CM 10.2 ROM?
Best from Vienna
RoseQuartz
Why I need USB Reverse Tethering?
I am Electro-Hyper-Sensitive; cannot use phones, WIFI, etc. etc. - stupid thing - I know
RoseQuartz said:
Hi guys,
I spend the last nights on figuring out how to get USB Reverse Tethering running.
My success story setup:
- Router: Normal Internet Router with Ethernet and Wifi
- Phone: LG Optimus G E975 (original ROM !!!, rooted)
- PC: Win 7
Network configuration from top (=WWW) to bottom (=Android Phone):
[WAN Line 1]: Connecting external network (internet) to my router
...[Device 1]: Router; connecting external network (x.x.x.x) to internal network (10.0.0.x, subnet 255.255.255.0)
......[Eth. Line 2]: LAN connection from Router [IP: 10.0.0.138] to PC [IP: 10.0.0.1]
.........[Device 2]: PC running Win 7 - Create a bridge (instruction see below - this is the master trick !)
............ [USB/Eth. Line 3]: Connecting PC with Phone in USB Tethering mode
............... [Device 3]: Android Phone [config: IP: 10.0.0.101, default gateway: 10.0.0.138, DNS1: 10.0.0.138]
Creating a bridge on PC Win 7:
Basic situation on the PC would be such as:
- if you connect PC to Router - this is Physical Ethernet Port with IP let's say 10.0.0.1/24 => network 1: 10.0.0.x
- if you connect Phone to PC - this is RNDIS (USB) Ethernet Port with IP let's say 192.168.42.129/24 => network 2: 192.168.42.x
- if you know want to get from network 1 (Phone to PC) to network 2 (PC to Router and to Internet) the PC must do a routing function - if not - the whole thing will fail.
Pretty Easy Solution to overcome routing problem/risk:
- Create a bridge between Physical Ethernet Port and RNDIS Ethernet Port
- How to: Mark both adapters (Physical Eth. and UBS Eth.) => right click => "German: Verbindung überbrücken" (engl.: Bridge connection or similar)
- Now the PC melts both, the Physical Eth. Port and the USB-Eth.-Port to only 1 Ethernet Port! (configure IP: 10.0.0.1)
This means:
- We can work with only 1 network, PC has no router function, Android Phone can directly ping Router because now it is in the same network 10.0.0.x
- Router's IP 10.0.0.138/24 => works as gateway and DNS1 for all devices in network 10.0.0.x
- PC's bridge Eth. port IP 10.0.0.1/24, configure default gateway and DNS1 => 10.0.0.138 (Router)
- Phone's IP 10.0.0.101/24, configure default gateway and DNS1 => 10.0.0.138 (Router)
Test it:
- ping PC on 10.0.0.1
- ping Router on 10.0.0.138 (if that works you can already open a bottle of vine )
- ping IP from external network (internet): e.g. xda-developers.com-Server-IP
- ping a domain if address resolution (DNS-server) works: e.g. www.xda-developers.com
If all that works - enjoy USB Reverse Tethering on your Android phone.
Many Apps don't work without Wifi ...
=> for that install Xposed Framework + Xposed Fake Wifi Connection
=> this makes an App believe Wifi is connected
enjoy
------------------------------------------------------------------------------------------
Now comes the BUT:
- This works fine with LG-phone + original ROM + root!
- This DOES NOT work with LG-phone + Cyanogen Mod 10.2 ROM + root!
I even found the problem why it fails but I can't solve it:
[Using Original ROM]:
- From LG-Phone I can ping PC or Router or external IP immediately after setup (PC, Router, Internet-IP)
[Using CM 10.2 ROM]:
- From LG-Phone I cannot ping PC, I cannot ping Router - all devices are in the same network!
- If I know give a 1st ping from another device, e.g. PC => LG-Phone - then I can also ping back from LG-Phone
- It seems as LG-Phone can only ping 'back' once it has received a ping from another device - why that?
- The reason can be found in the ARP-table - which lists IP-address to physical MAC-address of network device:
normal entry should look like: 10.0.0.1 (PC) 02:93:5f:2c:92:34 (=> ping is possible to this device)
incomplete entry looks like: 10.0.0.138 (Router) ..................................... (=> ping not possible, because of missing mac-address)
- If I now manually create an ARP-entry such as:
busybox arp -s 10.0.0.138 02.03:7f:92:12:33
then the thing works for this device! - I can successfully ping and have connection
- Summary: If LG-phone gets a ping from another network device - the LG-Phone collects the MAC-address - and after that the ARP-entry is OK - then LG-Phone can ping the device back and reach it via Ethernet
The problem now is:
- I cannot mantain the ARP table for all IP-addresses on the whole world
- and: I cannot wait to get a ping from any other device in the world - until I can communicate back
Does anybody have an idea what goes wrong here?
Is it a security related problem?
Or is it rather a network-problem (ARP resolution) caused by CM 10.2 ROM?
Best from Vienna
RoseQuartz
Why I need USB Reverse Tethering?
I am Electro-Hyper-Sensitive; cannot use phones, WIFI, etc. etc. - stupid thing - I know
Click to expand...
Click to collapse
I am also sensitive to EMF. I want to connect my android phone to a router using usb. This is a little different from what you have posted here, but could you tell me how to set up reverse tethering on the phone? Can I enter commands on terminal emulator to activate reverse tethering? Is there anything I have to do with the router, or just plug in the usb data cable? The other question is, if I am connecting a usb modem to the router, can I use a usb hub to connect both the modem and the phone to the single usb port on the router? Will this work? There are very few android devices which have usb ethernet drivers hence I can't use that option.
Related
i got usb wlan adapter. it's ip is 192.168.1.130.
the lan adapter in my pc has 192.168.1.84 ip.
all computers on my local wired network has 192.168.1.* addresses and 255.255.255.0 subnet.
i fixed the IP of SD sandisk wifi adapter on my mda compact to 192.168.1.131.
Usb adapter is in peer-to-peer (ad-hoc) mode and i normaly connect with ppc to it. i got 80-100% signal all the time.
the problem/question #1: why i cant ping from ppc to PC ? firewall turned off.
#2 - if i could ping it, would i be able to ping all the other ip's on my wired network?
#3 - if i could be able to ping all of those computers, how should i set-up a workgroup on ppc and be able to map network drives through wlan link?
#4 - if i would be able to map the drive over wifi link, would i be able to add mine 20.000 mp3s to the pocketmusic's playlist and play them wirelessly?
thanks in advance!
And when i ping from PPC - i see on pc that "received" packets are raising -
ie. now it shows 12 packets received, when i run ping on ppc to pc, the
number increases to 16 (4 pings!) but all are time-outed....
And if the IP on both sides are set to "automaticly", they got assigned
169.254.*.* IP's. Then the ping goes through correctly but i can't still
access the network. The network bridge between LAN and WLAN connection only
made things worser, making my internet connection unusuable (DSL through the
same LAN connection) so i deleted the bridge. Now - ping is going but i
still cant map my pc's drive.... what could be the problem...
Same problem
Dakky,
I have the exact same problem. I bought a Netgear WG111 Wireless USB dongle. I created an ad-hoc network, connected to it but can't connect to the internet or browse my shared. On my desktop the sent packet go up but not the recieved.
Are we both being stupid, can't you connect your PPC to your PC using an ad-hoc network? I have now tried to connect with two different desktops to my XDA and a friends XDA IIs running WM5 to my desktop but had no success. I can connect to an access point and browse file/internet no problem.
I have an XDA EXEC and run XP Pro on desktop.
I've got similar problem. I have Linksys Wireless-G usb network adapter, i assign same class IP adresses (192.168.2.1, 192.168.2.2, mask 255.255.255.0) the wifi connects in ad-hoc modebut how can sync over wifi ?, if I am able to sync over wify i will be able to use my pc's internet connection wich is a lot faster than any gprs/edge
I don't think you can network in this way - basically you have a bunch of clients but no 'server' I think you need a wireless hub (with Internet connection in there somewhere) in there somewhere.
If you do a search on microsoft web site ther is some info about using a PC as an internet share for other PCs but you have to use a very specific IP address rnge for this and set the share PC up in a certain way
Hi, i need help about connecting my Pocket PC and using ICS
So this is what i want to achieve:
1. I have internet connection on my laptop via LAN
2. when i connect my HP IPAQ 114 with usb cable and sync using Active Sync i have internet on my PPC
3. I have another laptop that i want to "give" internet to via my wireless card on PPC connected wireless-ly to Laptop2
4. This is the scenario i like to create:
http://digitanium.blogspot.com/
Can someone help me with this?
I do the same thing as my curent internet is from a usb modem
so i turn on internet sharing on my pc
and set my phone's ip to be on the same subnet in my case 192.168.0.X
set my gateway to the ip on the pc in my case 192.168.0.1
set my dns to the same dns the pc use
if you don't know your dns
you can get it from a console and typing
iconfig /all
on your pc
tnx but i tried that and then i don't have internet on pc1 because of the mac of it is my password to the internet provider
can i somehow fis that?
ok i set my Local connection1(internet) to ics to the local connection 4 (activesync created and it made its address 192.168.0.1)
this seems to be normal but now my active sync can not connect to my device
and my laptop1 ip must be 10.10.16.79
Hello!
I have connected phone to PC and set 'internet sharing' on the phone, to have internet access on the desktop. It works well.
Then I connected other PC to that PC, both through LAN cards and set up home network.
Then I wanted to set up ICS (internet connection sharing) on the host PC, to access internet also on the other PC.
Problem is, that ICS is by default using address 192.168.0.1, which you can't change in winXP. And also my phone is connected to the host PC with the same address, which if I change, I loose internet connection on host PC.
How can I change this address which phone uses to connect to PC?
semi-bump.
Current setup: cable modem w/ wireless beams connection to my PC via wireless LAN. Modem is 192.168.0.1 on LAN, I'm .9, static. I want to setup ICS from my PC to my mob by bluetooth, as the wireless connection in my room is awful so I have to have a USB wireless adapter snaking under the door & out into the hallway.
Problem: ICS setup wants to host the service on 192.168.0.1 but that's the router & can't be changed. Is there any other way to do this? Cheers anyone.
can i circumvent this by connecting to the pc using bluetooth via activesync? won't i still need to setup ICS in the bluetooth config, or does activesynch overrule it?
i.e. to access a PC's internet connection from the phone for data via USB (NOT use phone's 3G connection!)
My problems;
3G Data from my provider costs $269 a GB!
My PC has wireless internet but through a USB modem, not a router.
Cannot share the connection with a WiFi router as routers (or mine anyway) don't have a USB connection, ie I can't plug the USB modem into my router.
I can share data through a wireless dongle but only via ad-hoc network, but I can't seem connect my Dream to ad-hoc networks and am not even sure that it will be able to share the internet once connected. I've tried various Wifi tether applications.
So a USB tether app would be perfect. Else how can I use my PC's internet connection for data on the phone?
HTC Dream rooted and running CM4.2.8
Correction in title, YOU need a reverse teether.
WIFI is not hard to comeby, comeon.
The Dream can connect to ad-hoc networks, but ask that in Q&A.
No, I'm not the only one, this is a question that has been asked quite a few times before.
Also having read through many posts I have found no reference to anyone that has actually successfully shared the PC's internet connection to the phone with an ad-hoc network.
Wait a sec, you said that you have a WiFi router? A separate device from the USB modem?
1. Connect the router to your PC via Cat 5
2. Set up routing on your computer (ICS if you are running windows)
3. Set up the wireless part of the router
4. Connect the Phone to the router WiFi.
5. Use the WiFi normally from your phone.
This might help until someone can get reverse WiFi or USB tethering to work.
t1n0m3n said:
Wait a sec, you said that you have a WiFi router? A separate device from the USB modem?
1. Connect the router to your PC via Cat 5
2. Set up routing on your computer (ICS if you are running windows)
3. Set up the wireless part of the router
4. Connect the Phone to the router WiFi.
5. Use the WiFi normally from your phone.
This might help until someone can get reverse WiFi or USB tethering to work.
Click to expand...
Click to collapse
Look carefully to the topic. It has written USB not wireless.
kiiiiiid said:
Look carefully to the topic. It has written USB not wireless.
Click to expand...
Click to collapse
That would be why it is called a work around. The suggestion is a response to this statement "Else how can I use my PC's internet connection for data on the phone?" from the OP.
pardus said:
No, I'm not the only one, this is a question that has been asked quite a few times before.
Also having read through many posts I have found no reference to anyone that has actually successfully shared the PC's internet connection to the phone with an ad-hoc network.
Click to expand...
Click to collapse
I've shared internet with G1 via ad-hoc without problem. The solution I found in Q&A section
1. Get a Wireless router
2. Plug ethernet cable from PC to Internet Input on Router
3. In Windows control panel, edit the wireless connections settings to shared
4. Connect to the router and setup wireless network settings
5. Connect to wireless network with phone
There you have it, easy steps to do what you need.
After hours of 'googling', it seems that's it's impossible to get my router to share a USB modem's connection (http://forum1.netgear.com/showpost.php?p=68070&postcount=5)
@g1DDriver: Please show me where, I've searched but can't find it?
@Wisefire: 2. Plug ethernet cable from PC to Internet Input on Router - if I do that I cannot connect to the router at all, ipconfig shows the ip address as 192.168.1.2 but a browser just doesn't see it.
just buy a wireless router. they cost what, like 10$ now while on sale?
kb8to24 said:
just buy a wireless router. they cost what, like 10$ now while on sale?
Click to expand...
Click to collapse
could also try this
http://www.readwriteweb.com/archives/watch_out_wifi_here_comes_mifi.php
kb8to24 said:
just buy a wireless router. they cost what, like 10$ now while on sale?
Click to expand...
Click to collapse
perhaps you're not reading my first post correctly, I have a wireless router...
...and anyway is it even possible to plug a USB modem into a router, it would need drivers & software which the the router can't handle?
My ISP also has their own proprietary modems (http://www.iburst.co.za/default.aspx?link=hardware_modems) which are very pricey, so I'm not getting another modem either.
I've been trying to set-up an ad-hoc network using the instructions here: http://blog.joint.net/2009/07/connecting-android-phone-through-adhoc.html
but having no luck.
Who'd of thought something so painlessly simple in WM6 would be a nightmare in Android
pardus said:
My ISP also has their own proprietary modems (http://www.iburst.co.za/default.aspx?link=hardware_modems) which are very pricey, so I'm not getting another modem either.
Click to expand...
Click to collapse
From that link, which modem do you have. A model # would be nicer.
Also, what is the model # of your router?
What OS are you using?
pardus said:
@Wisefire: 2. Plug ethernet cable from PC to Internet Input on Router - if I do that I cannot connect to the router at all, ipconfig shows the ip address as 192.168.1.2 but a browser just doesn't see it.
Click to expand...
Click to collapse
That would be because you are trying to manage the router from the WAN port... If you want to be able to do this you need to enable remote management. (Connect PC to inside, enable remote management, the connect to outside (WAN port) and use the http:// 192.168.1.1:8080 or whatever you set the port RM to)
The modem I have is "USB Modem for laptops and desktops"
Router is the Netgear WGR614v7 and OS is Win XP
I see a couple of things that could have prevented you from making this work.
By default the Netgear router gives 192.168.1.0 (mask of 255.255.255.0) to the inside. You cannot use the same network between the computer and the router. I would change the network on the inside of the router to 192.168.5.1 255.255.255.0. (Just change the 1 to a 5 in the router settings.)
ftp://downloads.netgear.com/files/wgr614v7_ref_manual_20apr06.pdf
So connect your PC to one of the four ports. Let it get an IP address. Connect to http://www.routerlogin.net (Per the instructions in the PDF.) Login and change the inside address pool to 192.168.5.1 255.255.255.0. (Instructions are at Chapter 6, "Using the LAN IP Setup Options" in the PDF above.) Reboot the router.
Connect to http://www.routerlogin.net again. Login and enable remote management. (Instructions are Chapter 6, "Enabling Remote Management Access" in the PDF above)
Enable Internet Connection Sharing on your computer.
Reboot the router again.
Once the router connects again, open a command prompt and do a "arp -a" (without the quotes) and get the IP address of the router. (It will be the IP address in the 192.168.1.x range that is *not* listed in an ipconfig from the command prompt)
Connect to that IP address (for example http://192.168.1.6:8080) and continue on setting up the wireless part normally.
Once you connect your phone to WiFi the connection flow looks something like this:
Phone = 192.168.5.21 > NAT > 192.168.1.6 <routed> 192.168.1.1 (IP of your Wired NIC on the computer) > NAT > USB NIC IP address > Internet
Of course the IP addresses above are just guesses as to what you will actually see.
Hopefully this will get you going well enough until someone gets reverse tethering to work.
Reverse tether g1 to pc network over usb cable
My android os is CyanogenMod 4.2.14.1,
1.Enable "Settings\Wireless controls\Internet tethering"
2.Install HTC Remote NDIS based Device driver(View attachment 277122)
3.Set the HTC adapter as: IP:192.168.2.1, Mask:255.255.255.0
4.Set the PC ethercard as shared connection
5.Run these codes in terminal:
su
ifconfig usb0 192.168.2.2 netmask 255.255.255.0
busybox route delete default
iptables -F
iptables -F -t nat
busybox route add default gw 192.168.2.1
setprop net.dns1 8.8.8.8
setprop "net.gprs.http-proxy" ""
6.Now your g1 could open browser to view any web pages on the internet, and update apps in the Market.
for diyism
Here is basically a run-down of what I did. I hope this helps everyone out.
Device specs:
Samsung Galaxy Player 4.0 Rooted
Network Specs:
DSL Modem
Router (DHCP with WPA security and does not have MAC Filtering)
4 Access Points (all on same channel broadcasting same SSID with same WPA security DHCP)
2 Servers - Static IPs
-Server 1 - DNS (not sure if it is actually a DNS server or just forwards the requests). Also storage/application server.
-Server 2 - Storage/Application/SQL server
Many clients on network (unsure of total amount but somewhere around 30 would be my guess)
Problem (note this is only on this network, every other network wifi
works just fine):
Wifi Connected but no internet.
My Windows 7 laptop (same network) gets internet access with no problems
No reports of any other clients on the network having this issue
Device has assigned a good DHCP IP address
Subnet, Gateway, and DNS IPs are all correct (they match the ones on my laptop)
Connection strength is great (speed is 52mbps)
Device has full local access (intranet). It can access all files and other devices on the network.
On occasion the device will get "internet" access for a brief period of time but will go back to "intranet" access only after a few minutes.
Tests Performed (My android device will be referred to as "device" my laptop will be reffered to as "laptop". All tests were performed with both laptop and device connected to the network in question, unless otherwise specified, and device was not able to access internet):
Ping from laptop to device - Successful
Ping from device to laptop - Successful
Ping from laptop to gateway - Successful
Ping from device to gateway - Failed
Resolve DNS IP on device - Successful
Resolve DNS IP on laptop - Successful
Ping from laptop to google - Successful
Ping from device to google - Failed
Small FTP file transfer from laptop to device - Successful
Small FTP file transfer from device to laptop - Successful
Device has no problems on other networks (tried un-secured, WEP, and WPA/WPA2)
Connect device using Google public DNS servers
-Intranet - Successful
-Internet - Failed
-Resolve DNS IP - Successful
Connect laptop using Google public DNS servers
-Intranet - Successful
-Internet - Successful
-Resolve DNS IP - Successful
More that I cannot remember right now. Will add as they come to me.
At this point I gave up for a few days. Every test and every bit of research returned nothing. I had spent many many hours trying to figure this out and testing theories and nothing ever pointed me in the right direction of where to go. Nothing made sense EVERY single setting is the same is on my laptop. Started thinking maybe there was something in the router that could be blocking Android devices (since it is a work network). Although I am not a aware of a router feature to do that I figure I would try some more tests.
Testing Round 2 (same conditions as initial tests):
Configured laptop to be a Wifi hotspot.
-From CMD command 1: netsh wlan set hostednetwork mode=allow ssid=AP key=XXXXXXXXX
-From CMD command 2: netsh wlan start hostednetwork
-From network and sharing center: Shared the physical wireless network connection with the Microsoft Virtual WiFi Miniport Adapter.
-The above commands create a virtual wireless adapter and set it broadcast the specified SSID with the specified WPA security key. Then you can choose any available, connected, physical, internet connection and share it's internet connection with the virtual connection, thus theorectically turning my laptop into a 5th access point on the network.
Connected device to the SSID "AP"
-Intranet - Successful
-Internet - SUCCESSFUL
Horray!!!! Progress! So with the above information I went to our IT guy and we sat down and looked at some stuff (settings in the router, access points, and servers). After digging and digging around within the settings we came up with.... you guessed it NOTHING!!!!!!!!!!!!! Now I was in "Its on!" mode and decided I wasn't going to stop until I found out at least what was causing the problem. My IT guy was also very determined to figure this out as he doesn't like to get beat either. So we both went at it. We decided the first thing to do was make a very detailed network map containing every piece of information we could possibly find. We did this all from his machine (laptop with Windows 7) and wrote everything down on paper (we even used a piece of our 36" wide roll paper from our plotter to make sure everything would fit) and made an excel spredsheet with all the info. Now with the newly aquired network information I decided I was going to do more testing.
Testing Round 3 (same conditions as initial test):
Map the entire network again gathering every piece of information possible just like before but this time using MY DEVICE (not my laptop).
Compare
Finally! I have found the problem! As stated before my device was getting the correct gateway IP (XXX.XXX.XXX.1) which is the same as my laptop). However the assigned MAC address OF THE GATEWAY (router) to my device is XX:XX:XX:XX:XX:FB but the MAC address OF THE GATEWAY (router) to my laptop is XX:XX:XX:XX:XX:FA. Got back with our IT guy and we found (by looking the router config) that the XX:XX:XX:XX:XX:FA is the LAN MAC address for the router. The XX:XX:XX:XX:XX:FB is the WAN MAC address for the router.
Testing Round 4 (same conditions as intial test):
Connected laptop to network, confirmed XX:XX:XX:XX:XX:FA MAC address was assigned for the gateway by running "arp -a" in CMD.
-Pinged google - Passed
-Changed assigned MAC address of gateway by running "arp -s XXX.XXX.XXX.1 XX:XX:XX:XX:XX:FB" in CMD
-Verified new MAC address assignment by running "arp -a" in CMD
-Pinged google - Failed
-Changed the MAC back and pinged google again - Successful
Connected device to network, confirmed XX:XX:XX:XX:XX:FB MAC address was assigned for the gateway by running "arp -a" in Terminal.
-Pinged google - Failed
-Changed assigned MAC address of gateway by running "su" then "arp -s XXX.XXX.XXX.1 XX:XX:XX:XX:XX:FA" in Terminal
-Verified new MAC address assignment by running "arp -a" in Terminal
-Pinged google - Successful
-Changed the MAC back and pinged google again - Failed
Conclusion:
For some reason the device is getting assigned the correct gateway IP but the wrong gateway MAC. This is allowing the device to connect to the network but not communicate with the router. Since it can't communicate with the router any "Internet" requests time out because the packets have to go through the router to make it to the "Internet". Since it is not blocked from the network it can still connect and communicate with other clients on the "Intranet" but not the router.
Our IT guy thinks there is a client somewhere on the network in the same subnet that is configured in this matter and it just so happens that for some reason my device is picking that up when it connects. He is going to look into it more when time permits but since we are very busy and we have already spent way too much time on this, and I now know at least what the issue is, he is going to move on for now.
Why would my device be picking up the WAN MAC address of the router?
What would be responsible for assigning a WAN or LAN MAC address?
How can I prevent this?
Has anyone ever experienced anything like this?
Temporary Solution (must be rooted):
Open your favorite terminal app on your device.
-Enter "su" (without quotes)
-Enter "arp -s [Your gateway IP here] [Your gateway's LAN MAC address here]
Browse away!!!!!
Hello.
I had the same problem, that I could connect to router but had no connection to internet.
Read this post and started to do some research on my router. When I configurated my router, there was an option to clone MAC address. And of course to get it done fast I cloned MAC. And now I checked that it cloned my laptop MAC. Changed MAC from laptop to Routers MAC (must be on label under router) and got a really nice internet connection.
Hi, I think I have the same problem with the same device, Samsung Galaxy Player 4, but even if my device is rooted I still can't excecute the "arp" command from the Terminal application (there is no "arp" command). How can I check/modify the arp list on my device???
I really appreciate your help. Thanks in advance!!!
I use the terminal emulator app. It works just fine for me and I never had to download any other software to be able to run the ARP command.
bmx0964 said:
Here is basically a run-down of what I did. I hope this helps everyone out.
Temporary Solution (must be rooted):
Open your favorite terminal app on your device.
-Enter "su" (without quotes)
-Enter "arp -s [Your gateway IP here] [Your gateway's LAN MAC address here]
Browse away!!!!!
Click to expand...
Click to collapse
anyone found a solution to this ?
just updated to ics4 and cannot connect to the internet.
You only have one device that assigns IP adresses, right?
How about changing the channel to see if that works? or maybe even the security protocol
greeky510 said:
You only have one device that assigns IP adresses, right?
How about changing the channel to see if that works? or maybe even the security protocol
Click to expand...
Click to collapse
the only thing that worked for me is to turn on the dhcp option
in my router. previously, i was using static ips
may_east said:
the only thing that worked for me is to turn on the dhcp option
in my router. previously, i was using static ips
Click to expand...
Click to collapse
I had the sams problem. I could connect with my wifi but had no internet acces. The solution here was the wifi encription.
My smartphone could not encript the hard encription I think. With WEP encription it all works well.
Hey guys,
Here's a run down of the problem I'm currently having. A few months ago I purchased a Dapeng A75 currently running ICS 4.0. Although a beautiful and fast phone, just recently it started going out of wack.
- Youtube and Play Store hang on "Loading" screen
- My Gmail accounts won't sync
- I can no longer search on Google.com with ANY browser through WiFi. (I do not have data service on my phone)
I've tried several attempts at troubleshooting this, all which have failed.
- I restored my phone to factory default.
- Uninstalled and reinstalled these apps.
- Downgraded the apps to previous versions.
- Cleared my cache on just about everything.
- Release and renewed my IP in Terminal.
Just recently I noticed a CWM recovery image posted and I figure this is the only solution. Wiping out the phone and flashing a fresh ROM but unfortunately I can only get as far as installing the drivers to my Windows 7 machine. Some reason when I plug the phone in after installing the drivers, Windows will prompt me that the device is plugged in but before I get a chance to hit F9 for SP Flash Tool to do it's thing, the device quickly disconnects.
NOTE: I am able to browse Google via WiFi only by using HotSpot Shield VPN (Which is problematic in itself).
I'm currently losing the battle with this phone and at my wits end. Is there anyone out there who is experiencing the same situation or has some sort of solution which doesn't involve be shelling out more money for a new phone?
good work brother
i understood the above problem n i too experienced the same problems so now i will take ur research to next level n see my know of network .
i appreciate all the work done you , in research of this LITTLE but hetic problem.
i have learned a lot through u r research.
n will do more n keep u guys posted if i found somthing on this
---------- Post added at 11:11 AM ---------- Previous post was at 11:06 AM ----------
bmx0964 said:
Here is basically a run-down of what I did. I hope this helps everyone out.
Device specs:
Samsung Galaxy Player 4.0 Rooted
Network Specs:
DSL Modem
Router (DHCP with WPA security and does not have MAC Filtering)
4 Access Points (all on same channel broadcasting same SSID with same WPA security DHCP)
2 Servers - Static IPs
-Server 1 - DNS (not sure if it is actually a DNS server or just forwards the requests). Also storage/application server.
-Server 2 - Storage/Application/SQL server
Many clients on network (unsure of total amount but somewhere around 30 would be my guess)
Problem (note this is only on this network, every other network wifi
works just fine):
Wifi Connected but no internet.
My Windows 7 laptop (same network) gets internet access with no problems
No reports of any other clients on the network having this issue
Device has assigned a good DHCP IP address
Subnet, Gateway, and DNS IPs are all correct (they match the ones on my laptop)
Connection strength is great (speed is 52mbps)
Device has full local access (intranet). It can access all files and other devices on the network.
On occasion the device will get "internet" access for a brief period of time but will go back to "intranet" access only after a few minutes.
Tests Performed (My android device will be referred to as "device" my laptop will be reffered to as "laptop". All tests were performed with both laptop and device connected to the network in question, unless otherwise specified, and device was not able to access internet):
Ping from laptop to device - Successful
Ping from device to laptop - Successful
Ping from laptop to gateway - Successful
Ping from device to gateway - Failed
Resolve DNS IP on device - Successful
Resolve DNS IP on laptop - Successful
Ping from laptop to google - Successful
Ping from device to google - Failed
Small FTP file transfer from laptop to device - Successful
Small FTP file transfer from device to laptop - Successful
Device has no problems on other networks (tried un-secured, WEP, and WPA/WPA2)
Connect device using Google public DNS servers
-Intranet - Successful
-Internet - Failed
-Resolve DNS IP - Successful
Connect laptop using Google public DNS servers
-Intranet - Successful
-Internet - Successful
-Resolve DNS IP - Successful
More that I cannot remember right now. Will add as they come to me.
At this point I gave up for a few days. Every test and every bit of research returned nothing. I had spent many many hours trying to figure this out and testing theories and nothing ever pointed me in the right direction of where to go. Nothing made sense EVERY single setting is the same is on my laptop. Started thinking maybe there was something in the router that could be blocking Android devices (since it is a work network). Although I am not a aware of a router feature to do that I figure I would try some more tests.
Testing Round 2 (same conditions as initial tests):
Configured laptop to be a Wifi hotspot.
-From CMD command 1: netsh wlan set hostednetwork mode=allow ssid=AP key=XXXXXXXXX
-From CMD command 2: netsh wlan start hostednetwork
-From network and sharing center: Shared the physical wireless network connection with the Microsoft Virtual WiFi Miniport Adapter.
-The above commands create a virtual wireless adapter and set it broadcast the specified SSID with the specified WPA security key. Then you can choose any available, connected, physical, internet connection and share it's internet connection with the virtual connection, thus theorectically turning my laptop into a 5th access point on the network.
Connected device to the SSID "AP"
-Intranet - Successful
-Internet - SUCCESSFUL
Horray!!!! Progress! So with the above information I went to our IT guy and we sat down and looked at some stuff (settings in the router, access points, and servers). After digging and digging around within the settings we came up with.... you guessed it NOTHING!!!!!!!!!!!!! Now I was in "Its on!" mode and decided I wasn't going to stop until I found out at least what was causing the problem. My IT guy was also very determined to figure this out as he doesn't like to get beat either. So we both went at it. We decided the first thing to do was make a very detailed network map containing every piece of information we could possibly find. We did this all from his machine (laptop with Windows 7) and wrote everything down on paper (we even used a piece of our 36" wide roll paper from our plotter to make sure everything would fit) and made an excel spredsheet with all the info. Now with the newly aquired network information I decided I was going to do more testing.
Testing Round 3 (same conditions as initial test):
Map the entire network again gathering every piece of information possible just like before but this time using MY DEVICE (not my laptop).
Compare
Finally! I have found the problem! As stated before my device was getting the correct gateway IP (XXX.XXX.XXX.1) which is the same as my laptop). However the assigned MAC address OF THE GATEWAY (router) to my device is XX:XX:XX:XX:XX:FB but the MAC address OF THE GATEWAY (router) to my laptop is XX:XX:XX:XX:XX:FA. Got back with our IT guy and we found (by looking the router config) that the XX:XX:XX:XX:XX:FA is the LAN MAC address for the router. The XX:XX:XX:XX:XX:FB is the WAN MAC address for the router.
Testing Round 4 (same conditions as intial test):
Connected laptop to network, confirmed XX:XX:XX:XX:XX:FA MAC address was assigned for the gateway by running "arp -a" in CMD.
-Pinged google - Passed
-Changed assigned MAC address of gateway by running "arp -s XXX.XXX.XXX.1 XX:XX:XX:XX:XX:FB" in CMD
-Verified new MAC address assignment by running "arp -a" in CMD
-Pinged google - Failed
-Changed the MAC back and pinged google again - Successful
Connected device to network, confirmed XX:XX:XX:XX:XX:FB MAC address was assigned for the gateway by running "arp -a" in Terminal.
-Pinged google - Failed
-Changed assigned MAC address of gateway by running "su" then "arp -s XXX.XXX.XXX.1 XX:XX:XX:XX:XX:FA" in Terminal
-Verified new MAC address assignment by running "arp -a" in Terminal
-Pinged google - Successful
-Changed the MAC back and pinged google again - Failed
Conclusion:
For some reason the device is getting assigned the correct gateway IP but the wrong gateway MAC. This is allowing the device to connect to the network but not communicate with the router. Since it can't communicate with the router any "Internet" requests time out because the packets have to go through the router to make it to the "Internet". Since it is not blocked from the network it can still connect and communicate with other clients on the "Intranet" but not the router.
Our IT guy thinks there is a client somewhere on the network in the same subnet that is configured in this matter and it just so happens that for some reason my device is picking that up when it connects. He is going to look into it more when time permits but since we are very busy and we have already spent way too much time on this, and I now know at least what the issue is, he is going to move on for now.
Why would my device be picking up the WAN MAC address of the router?
What would be responsible for assigning a WAN or LAN MAC address?
How can I prevent this?
Has anyone ever experienced anything like this?
Temporary Solution (must be rooted):
Open your favorite terminal app on your device.
-Enter "su" (without quotes)
-Enter "arp -s [Your gateway IP here] [Your gateway's LAN MAC address here]
Browse away!!!!!
Click to expand...
Click to collapse
i would like to add if u have seen the
cmd-ncpa.cpl-ipv4-propreties- in this section u see its Dhcp so all fields are inactive
but u can see gateway ip which is inactive such as in my case 192.168.1.1
u cannot remove that.
any body saw the reply....
thanks regards
bmx0964 said:
Temporary Solution (must be rooted):
Open your favorite terminal app on your device.
-Enter "su" (without quotes)
-Enter "arp -s [Your gateway IP here] [Your gateway's LAN MAC address here]
Browse away!!!!!
Click to expand...
Click to collapse
Thanks, This Solution Saved me Today