Before i start i want to let people know YES I DO HAVE A WIRELESS ROUTER!! So please do not respond telling me to just go buy a router.
REQUEST - Reverse wired tethering. I.E. Sharing PC's iNet connection with your phone via USB.
REASON - My university's wireless is locked down and does not allow mobile phones, pda's to connect up to our wireless without submitting MAC for approval. Looking to sync certain apps without using my data connection.
I dont know if anyone has played around with trying to get this working or not. I know its a small market of people who may be interested in this, but for certain places (CANADA) where data charges are WAY to expensive this could be handy for students at UNI where wireless is not an option.
get a second wifi adapter on your laptop, and share your uni wireless network connection with the second wifi adapter. Use a hidden SSID, then no one will know what is going on
This was asked a couple of times before here and I remember people saying you couldn't reverse the tethering.You could try though.
alexperkins said:
get a second wifi adapter on your laptop, and share your uni wireless network connection with the second wifi adapter. Use a hidden SSID, then no one will know what is going on
Click to expand...
Click to collapse
Thats a good idea xD
Hey guys,
I have been trying to find a way to do this for a long time.
The best solution i have found (actually the only solution) is Connectify. The only downside is you must have Win7.
What it does is turns your wifi adapter into a HotSpot, even if you are using wifi to get the net in the first place. Its a great tool and should be what your after.
http://www.connectify.me/
memphisraynz said:
Hey guys,
I have been trying to find a way to do this for a long time.
The best solution i have found (actually the only solution) is Connectify. The only downside is you must have Win7.
What it does is turns your wifi adapter into a HotSpot, even if you are using wifi to get the net in the first place. Its a great tool and should be what your after.
http://www.connectify.me/
Click to expand...
Click to collapse
thank you so much for this
Your best solution is the WiFi adapter. You could most likely get away with a SOCKS proxy over USB, possibly using adb, but it would be complicated, unstable, and messy.
I still don't know you just don't use your wireless router. I assume they have wired. Clone your PC's mac address and hook it up. Universities are retarded with that crap. They have the worst networks and security.
If no wired, then what podunk place is it? haha
Even if they had only wireless , you could set up a wlan client and repeat it. DDWRT, etc, ftw.
Just get backtrack for your laptop and spoof your mac to all 0 then grab connect to the network at your school the spoofed mac will allow you to browse so long as no other encyption is on the network such as WEP or WPA.
then you can try to flood all the ports on the network so no one else can connect then spoof your phones mac by conneecting to your laptop through wireless as an adhoc connection and while staying connected through adhoc load a second server through the same wireless network card and you can connect to the achools network again. and walla...
death1246 said:
Just get backtrack for your laptop and spoof your mac to all 0 then grab connect to the network at your school the spoofed mac will allow you to browse so long as no other encyption is on the network such as WEP or WPA.
then you can try to flood all the ports on the network so no one else can connect then spoof your phones mac by conneecting to your laptop through wireless as an adhoc connection and while staying connected through adhoc load a second server through the same wireless network card and you can connect to the achools network again. and walla...
Click to expand...
Click to collapse
so simple, i dunno why i didnt think of that. thanks! lol
Well its quit simple once you learn your way around linux...
If you have any experience with *nix, you may want to look at Cyanogen's original usb tether shell script:
http://github.com/cyanogen/android_vendor_cyanogen/blob/master/bin/usb-tether
Basically you could use the internet connection sharing function that comes with all popular OSes and access your uni's network on your phone. You must have Cyanogen mod or another mod using his kernel. Not yet working on OSX for some reason. Tested under Windows 7.
First you'll need to figure out what IP address range your computer's DHCP server is using. This is normally fixed for each OS. For Windows 7, it's always 192.168.137.0/24.
For OSX or Linux, you can setup connection sharing (for some other connection because we don't have the USB interface yet) and ifconfig.
Second is to enable the USB connection on the phone's side. Type the following command in any console program, like Connectbot. (You must use a console program as opposed to adb because you will lose USB debugging once the USB network interface is enabled.)
Code:
su
cd /sys/devices/virtual/net/usb0
ifconfig usb0 192.168.137.200 mask 255.255.255.0
echo 1 > enable
The first line makes you the superuser. (Skip if the command prompt is #)
The second line land you in usb0's directory under sys. We'll need to type the disable command later, so it's easier if we're here.
The third line brings up the virtual usb network interface and sets its IP address.
The IP address should be in the same network (i.e. IP address range) you obtained in step 1. Say if the original is 192.168.137.1 in a /24, you can use 192.168.137.2 through 192.168.137.254
This actually enables the usb interface.
You will now see a new network adapter is recognized by your computer. Set up connection sharing to share your internet TO that adapter.
Make sure you have connection by pinging your computer from your phone.
For example:
ping 192.168.137.1
Now you'll have to change the routes so traffic go through the USB cable instead of the mobile network.(# is the command prompt, do not enter)
# busybox route
check the line starting with "default". Write down the ip address after it; call it IP1.
# getprop net.dns1
Call the IP returned IP2.
Code:
busybox route del default gw IP1
busybox route add -host IP2 rmnet0
busybox route add default gw 192.168.137.1
The first line deletes the old default route via the mobile network.
The second line adds an "exception" for your carrier's DNS server.
The third line adds the new route via USB. You should replace the address at the end with the IP address from the first step.
Your network should be working now. Test by visiting some website that is only available on campus or by traceroute.
You must make sure the mobile network is always connected though. This is because domain names are still resolved by your mobile carrier. If you ever lose your mobile connection, the routing table will be changed as well.
To disconnect:
Make sure you're still in /sys/devices/virtual/net/usb0.(Use pwd if unsure.)
Code:
netcfg usb0 down
echo 0 > enable
The usb interface will disappear on your computer.
Now switch the phone to airplane mode and back to re-enable mobile network.
The disconnect step should always restore your phone's state.
// This is written at 3am, so use it at your own risk...
help?
look at this
http://superuser.com/questions/91699/spoof-mac-address-from-ip-command
bg
It's really sad that Android can't reverse tether. If you want to use your laptop's AdHoc connection you have to do serious hacking to the tiwlan.ini and the wpa_supplicant.conf. There is no way to connect via bluetooth ar USB.
I'm seriously considering WP7 now for my next OS of choice... A nd for everyone saying "go buy a router" - go buy a router and stick it up your .... nose.
Hi,
I have the same problem. No WiFi in my work and no WiFi in my current home (a Resident Hall). There's no possibility to buy a WiFi router, of course. I tried to hack the system to connect ad-hoc networks but it didn't work.
I have found some interesting resources:
sluniverse.com/php/vb/blogs/psyke+phaeton/1042-making-android-phone-use-your.html
letsgoustc.spaces.live.com/blog/cns!89AD27DFB5E249BA!877.entry
I have a HTC Magic with the ADP-DRC83 hacked ROM with Usb tethering integrated. But usb0 interface in the mobile is configured to provide Internet connection (as gateway) to the PC, not the reverse functionality: connecting the mobile to Internet through the PC. So, all I need is to change the gateway in Android and then configure a NAT-DNS in my linux PC (easy with iptables and dnsmasq). But, I don't know how automatize the process exactly.
digitaljeff said:
but for certain places (CANADA) where data charges are WAY to expensive this could be handy for students at UNI where wireless is not an option.
Click to expand...
Click to collapse
Wind will be launching in vancouver soon.
$35 unlimited data.
Silly ragin' cajun.
Ok, now it works. Here it's my procedure for a HTC Magic (Sapphire) without any APN previously configured from Telecom provider and ROM CSDIv4.
In the mobile by using Better Terminal:
Code:
su
cd /sys/devices/virtual/net/usb0
echo 1 > enable
ifconfig usb0 192.168.2.2 mask 255.255.255.0
busybox route add default gw 192.168.2.1
setprop net.dns1 8.8.8.8
In the linux computer:
Code:
sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -i usb0 -j ACCEPT
sudo ifconfig usb0 192.168.2.1 netmask 255.255.255.0
Android Market downloads and location service don't work but I think is possible if you switch on the WiFi.
Update: Syncronization, Android Market downloads and location service don't work even the WiFi antenna is switched on. I have added the iptables commands also.
Well gosh, reverse wireless tethering is so much simpler
There are another similar thread: http://forum.xda-developers.com/showthread.php?t=522498
okay, i just got barnacle tether on my phone. Xperia Play. and i have an decades old (lol) pandigital novel black. i cant even find my barnacle network on the tablet, but i can find it on my dads table, his pc, and my brothers phone and pc. oh yeah, and my laptop. so why cant i find it on my tablet? someone please help!!!
This is what i see
UNDER WIRELESS LAN
SSID
current" 2wire1
BSSID (Optional)
Wireless Encyption
set WEP key (40-bit or 104-bit
Access Control
Restrict NAT to selected MAC addersses (this is turnedd off)
Channel
current: 1
Custom Wifi Ad-hoc
Skip wpa_supplicant (this is checked)
UNDER INTERFACES
Wan
Current rmnet0
LAN
Current: eth0
UNDER ADVANCED
DHCP
LAN host Configuration
NAT
Network Address Translation
This is on my tablet
ADVANCED
Regulatory domain
Set the number of channels to use
Wifi sleep policy
specify when to shut off ifi
MAC address
00:27:13:e8:78:a6
IP SETTINGS
use static ip (unchecked)
After long days of searching, I'm one step closer (I hope) in finding how to change the MAC Address on my Droid RAZR.
Using a terminal, I type in these commands:
Code:
su
busybox ifconfig wlan0 down hw ether 4E:53:50:4F:4F
ifconfig wlan up
I check it with a simple "busybox ifconfig wlan0" and it states that the MAC Address is changed to the desired one.
However, this only works when the Wi-Fi setting is switched on. When I turn on tethering, it switches the Wi-Fi setting off, thus reverting the MAC Address to the original one.
What I want to do is have the MAC Address spoofed only when the hotspot tethering is on. I don't want to connect to other devices, I want other devices to connect to mine
Any suggestions on how to change the MAC Address while having hotspot tethering on?
Note, that spoofing apps aren't useful to me as the Droid Razr isn't too hacking friendly. I've tried.
Hello all,
I've recently moved to an apartment complex with very good community wifi. However, upon connecting to the wifi, I am redirected to a splash page where I input my apartment username/password. This is okay for my PC and android devices but not so good for my PS3, dvd player, and Google Chromecast. I've been looking for a way to bypass this splash page. I have a Linksys E1500 with DD-WRT installed that I think will be helpful in this endeavor. I've found a couple of options online such as:
1) Connect to wifi on PC, then connect PC to router, and activate internet connection sharing -> I tried this but it wasn't working. I wasn't sure what mode my router should be in (AP, client, bridge?) or what local connection to set it to; The instructions weren't clear. Also, I would like to have my own private network fed from the public network.
2) Use router as repeater -> I tried this as well but it didn't really work. I could get Google home page to load but then everything else would say "SSL connection error". I wasn't sure what to do at that point. Instructions were:
"Hard reset the router, then configure the router to 192.168.2.1 and mask 255.255.255.0. Next go to status/wireless and find the AP you want...and click join. When the screen changes to the wireless page, change the dropdown to 'repeater', add virtual interface with new SSID, hit save. Go to Security tab and uncheck everything under Block WAN, save, apply changes. Power cycle then go to basic router setup, assign WAN port to switch, enter opendns for your static DNS as follows
static dns 1 208.67.222.222
static dns 2 208.67.220.220
Then in services tab for dnsmasq put this line:
strict-order
hit save, apply settings again."
3) Use router with DD-WRT to create a tunnel through openVPN -> I didn't know how to configure this and couldn't find instructions.
4) Buy a travel router -> I want to save money so I would like to avoid this option if I can... People claim it works for their hotel splash pages but I don't know if it'll work with mine.
I might have done something wrong during my setup procedures; I can't say for sure. I would gladly try again if someone wants to walk me through the process/troubleshoot. My overall goal is to get my own network set up from the community network without having to deal with the splash page. I hope this is possible. If anyone knows another method I could try, let me know.
My apt complex specs are:
SSID: apartmentcomplex
Security type: none
IPv4: 192.168.1.156
Default Gateway: 192.168.1.1
DHCP Server: 192.168.1.1
Subnet Mask: 255.255.255.0
Splash page is: 192.168.1.1:8000
I appreciate the help.
I just received and installed the latest release (00WW_4.15C) and by default it chooses a random MAC address. As my router is using static DHCP based on MAC, I had no wifi connection, I had to reset the settings... it is SSID based, so for my home network I keep the real MAC, but all others still use random MAC.
You can disable Android's MAC randomisation in every Wifi network's "advanced" settings section.