Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
4
votes
1
answer
3k
views
How to reset static IP address back to DHCP for ethernet
My question is how to I go back to a non static IP address
I tried doing ifconfig eth0 dhcp but I get an error in adb saying
ifconfig: bad argument 'dhcp'
Right now the only way I can reset everything …
47
votes
How to set up reverse tethering over USB?
/adb shell netcfg usb0 dhcp
Or in a root terminal on your phone, type:
su
netcfg usb0 dhcp
You should now be able to connect to Internet on your phone using your computer’s Internet connection. … STEP 5:
To shut down the reverse-tethering, first unbridge interfaces on your computer:
sudo ifconfig eth0 down
sudo ifconfig usb0 down
sudo ifconfig br0 down
sudo brctl delbr br0
sudo ifconfig …
3
votes
2
answers
20k
views
How to enable/disable DHCP of eth0
ifconfig eth0 dhcp start or ifconfig eth0 dhcp drop does not seem to work for Android. Is there a way to enable/disable DHCP for eth0 via shell commands? …
0
votes
How to enable/disable DHCP of eth0
try this way (My Android device worked)
DHCP IP
ifconfig eth0 dhcp
OR
setprop dhcp.eth0
OR
dhcpcd -k eth0
dhcpcd -n eth0
OR
netcfg eth0 dhcp
OR
getprop dhcp.eth0
and
Static IP
ifconfig … eth0 down
ifconfig eth0 up
dhcpcd -k eth0
dhcpcd -n eth0
netcfg eth0 dhcp …
2
votes
2
answers
4k
views
Does "ifconfig wlan0 dhcp status" work for Android?
I cannot get any response from an Android device (Android 4.2) to command "ifconfig wlan0 dhcp status"
Command "ifconfig wlan0" returns the following:
wlan0: ip 192.168.0.14 mask 255.255.254.0 flags … If not, how can I find out through a command whether DHCP is enabled? …
1
vote
How do I route traffic from WiFi Hotspot to USB?
You need to edit the newly created connection's details on the smartphone as following:
"IP Settings" - change from the dropdown from "DHCP" to "Static". … You can find it after you run "ifconfig" in the terminal on the laptop. …
7
votes
1
answer
29k
views
Connect android emulator to lan
Dhcp client work automaticly after boot time. I can ping the lan gateway, google ... and the multicasting work. … But the nic add to the emulator is not present via ip link or ifconfig, it is hidden, and default route is not present !! strange thing. The emulator is no pingable from the outside. …
3
votes
reverse usb tethering works, but no internet
Type the following command in Terminal Emulator:
netcfg rndis0 dhcp
The name for usb interface inside Android may vary. It is usually rndis0 or usb0. Type busybox ifconfig to identify the name. … It can happen that automatic dhcp method does not work. …
0
votes
reverse tethering : share laptop internet connection thru bluetooth
When automatical dhcp method does not work. … Type busybox ifconfig to identify name)
Source: http://forum.xda-developers.com/showthread.php?t=2287494 …
9
votes
Accepted
Share WIFI from PC over USB
Type the following command in Terminal Emulator:
netcfg rndis0 dhcp
The name for usb interface inside Android may vary. It is usually rndis0 or usb0. Type busybox ifconfig to identify the name. … It can happen that automatic dhcp method does not work. …
3
votes
Accepted
Samsung devices: dual networking
wpa_supplicant -B -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
dhcpcd
busybox pkill dhcpcd
rm /data/misc/dhcp/*
dhcpcd wlan0
verify route
busybox route
For me this is showing the … To make it work:
ifconfig wlan0 down
ifconfig wlan0 unplumb
rmmod wlan
rmmod cfg80211
And you can turn on wireless again
Alternatively with script:
# enable dual-networking:
pkill dhcpcd
svc wifi …
1
vote
1
answer
136
views
How to make apps know that I actually have internet /make them not check for wifi etc when I...
I've also done what the thread at XDADev says with the reverse tether guide:
netcfg rmnet0 dhcp and other netcfg (like wlan0 and p2p0 which appear after you turn on wifi. … (They appear as a response to ifconfig.))
How do I fool them?/Make them know I am connected? …
1
vote
0
answers
223
views
Android can't access services hosted on my own LAN
I have a very simple home network. single wireless AP running a single 192.168.1.0/24 network with DHCP provided by the router.
I have a ESXi host with a variety of services running. … I've installed a simple shell on the GF's phone and IFCONFIG shows a proper network configuration. Ping responds as expected. …
1
vote
0
answers
619
views
reverse tethering - offline for some applications
and I have done :
One the computer:
sudo ifconfig eth0 0.0.0.0
sudo ifconfig usb0 0.0.0.0
sudo brctl addbr br0
sudo brctl addif br0 eth0
sudo brctl addif br0 usb0
sudo ifconfig br0 up
sudo … When i connect my phone to my box with wifi it work fine with dhcp...
Thank you …
2
votes
0
answers
395
views
How does changing IP and mask by ifconfig work?
Here is the effort to change IP and mask:
# ifconfig eth0
eth0: ip 192.168.0.133 mask 0.0.0.0 flags [up broadcast running multicast]
# ifconfig eth0 192.168.0.144 netmask 255.255.255.0
# ifconfig eth0 … After rebooting the device, "ifconfig eth0" returns the old values 192.168.0.133 and 0.0.0.0.
DHCP is disabled.
Could anyone shed some light on this? …