[Q] [openvpn, cm7] Hotspot not functional when openvpn is connected - General Questions and Answers

I'm using CM7 stable (7.0.3) with a Nexus One.
When I enable the hotspot feature without having the phone connected to my openvpn server, my laptop (connected to the hotspot) connects to the web fine. The phone's internet connection works fine as well.
But when I enable the feature while connected to the openvpn server, even though the internet works on the phone, my laptop connects to the hotspot but cannot send/receive any data. I can ping my phone from my laptop, but pings go unanswered for example to google.com or 8.8.8.8...
Does anyone have any idea what's going on here, how I can troubleshoot or how I can fix the problem?
PS. I'd like to have the phone connected to my openvpn server rather than my laptop while using the hotspot as the laptop's openvpn connection is unstable when using the phone's hotspot (I do't know why).
Thanks!

I think the problem is the Gateway used by the laptop to connect to the internet. When you activate the hotspot the laptop will use to connect to the internet as gateway the ip provided by 3G. When you activate the VPN the gateway is changed but the laptop can't tell that and it uses the wrong IP address.

Related

[Resolved] [Q] Android: Remote Access: WiFi Router.

Hi,
I have been using GMote and droid VNC server on mobile for sometime. All this time, since I had one PC, I used my PC to setup a portable AP and connected my mobile with it.
Now, I switched to using DLink DSL-2640B WiFi router and since then am having issues with the remote apps. They don't work or they just work and disconnect quickly. What is wrong?
Am sure it's not about port forwarding or port triggers since I can connect. It's like the connection is very unstable although I have good signal. Does it have something to do with QoS? Anybody? Any ideas?

Phone > PC > WIFI Router

Hi
I have already asked this before but may have asked it in a mad way, maybe in wrong place who knows this site is freaking massive
I have a HTC Sensation on 3 mobile One Plan and use this phone to give me and my partner internet using the WIFI Hotspot
As I am coming from broadband from good ole Richard I have 4 WIFI routers in several room in my house all have connection to my main PC which is my media server
Only problem is when we are on the internet we dont have access to this server we have to disconnect and connect to one of the WIFI routers
So what I would like to do is connect the phone to a PC using USB and use the PC as a proxy server, this would then be connected to one of the WIFI routers, this would then have all my WIFI routers giving out the internet
Is this possible??
Any info would be awesome
Thanks
Bump!! Bump!! Bump!!
well to make this work you would need use the wifi hotspot to connect to your server, from there bridge your wifi connection of the server to the hardwire connection of your pc. itll take some reconfiguring of your ip scheme to make it all work but if you know what your doing its not too bad. Also turn on all upnp. (universal plug and play) it will allow you to see all devices on the network without having to have the ip addresses.
wranglerray said:
well to make this work you would need use the wifi hotspot to connect to your server, from there bridge your wifi connection of the server to the hardwire connection of your pc. itll take some reconfiguring of your ip scheme to make it all work but if you know what your doing its not too bad. Also turn on all upnp. (universal plug and play) it will allow you to see all devices on the network without having to have the ip addresses.
Click to expand...
Click to collapse
Thats the only way. But upnp MUST be enabled.
Good luck!
Sent from my GT-P1000 using XDA Premium App

[Q] Wifi Tether and DDWRT for a complete home network

OK, my wife and I each have Sprint Samsung Galaxy S3's. We both have Wifi Tether TrevE mod installed and working and we also have a linksys router running DD-WRT.
I have wanted for a long time to create a stable home network with the router using our phones for internet. Reason being, We both have laptops that need access to our WiFi networked printer. And I also wanted to create a networked storage.
I started out trying to use the Router as a repeater bridge. The problem here is that in that mode there is no DHCP server in the router, so when you turn off WiFi Tether in the phone, there is no IP assignment taking place since it is handled by the phone. This is ok for the printer because we can set a static IP, but not ok for the laptops because they need to have auto ip assignment for all the other networks they might encounter. Plus I'd like to be able to have a friend come over and use the printer if need be without having to change his IP address. So this setup is unstable.
Then I tried the Router in Repeater mode. In this mode IP addresses are being assigned and everyone can see everyone else on the network. The problem here though, is that the Router and all connecting devices have to be in a separate subnet than the WiFi Tethering phone, i.e, Tethered Phone on 192.168.1.x and Router on 192.168.2.x (as far as I can tell anyway, I've tried putting them on the same subnet but fail to get internet access.) It's a problem because I have Samba Filesharing installed on the phones and the tethered phone is in a different subnet and not visible on the network. I want all devices visible.
So that's kind of where I am now, Wifi Tether on both phones (each setup with same settings so either phone can be used as our internet gateway) but they are on a separate subnet from the rest of the network while tethering.
How do I get all of my devices to be visible on the network?
Do I need a different setup in DD-WRT?
Currently it is setup in Gateway mode with DHCP server and wireless is in repeater mode with a VLAN setup with a different SSID from the WiFi tethered phone.
Do I need to usb tether the phone to the router? I have a usb port on the router but I've not found good instructions for getting the phones internet through to the router that way and I'm not sure that I would want it that way since I wouldn't be able to walk around with my phone.
Is there a way to make devices in different subnets visible to each other? Some kind of bridging or static routing or something?
Is it possible to have the phone connect to the router in a normal manner and for the router to then share the phones internet connection with the rest of the network? Then at least the router could run DHCP and be stable even without the phones.
Again, just to clarify, I want a home network with devices connecting to my WiFi router running DD-WRT and internet being provided by one of our phones, but with the network remaining intact when the internet provided phone is removed. Thanks for your help.
Bonus questions:
Is it possible to harness the power of both of our phones internet connections into one network by any means possible?
Are there any other wifi/tethering apps or another version of WiFi Tether that offer more features or the functionality of DD-WRT?
did you see this?
http://forum.xda-developers.com/showthread.php?t=1548844
pbmurdoc said:
did you see this?
http://forum.xda-developers.com/showthread.php?t=1548844
Click to expand...
Click to collapse
Thanks. Not much new there other than Barnacle. Didn't know about it, tried it, doesn't work on my phone. I would like to see a version of WiFi Tether with some more options though, why couldn't we have one with the same options as DD-WRT?
I did some more reading and I think what I need to do is link the subnet created by the router to the primary router (the phone serving Wifi Tether) through static routing. Unfortunately the static route needs to be done through the primary router and WiFi Tether doesn't include features like that.
I'll do some more experimenting and see what happens.
[A] Cellular Phone/USB Modem As WAN Connection
Answer is in the DD-WRT Wiki, here (http://www.dd-wrt.com/wiki/index.php/Cellular_Phone/USB_Modem_as_WAN_connection).
Or just google "DD-WRT Cellular Phone/USB Modem As WAN Connection", it should be the #1 result.
Their WIKI is a great resource.
Good luck!
EDIT:
In retrospect, I am unsure about linking to the DD-WRT site... external and all. If this is a no-no just let me know and I will delete the link.
DD-WRT Client Bridge worked for me
I was able to do what you're trying to do by configuring my DD-WRT router as a Client Bridge.
I can't post the link, but there are directions I followed exactly on the DD-WRT wiki in the section:
DD-WRT wiki mainpage / Linking Routers / Client Bridged
I'm connecting my router to the tether via wifi, and connecting my wired devices to the router. I haven't had it working long, but so far it has been great.
Got it, sort of
Just to update this thread. The client bridge is a great way to connect a wired network to the bridge but loses out on creating a stable wi-fi network when the phone tether is turned off.
Anyway, the final setup I managed was having the DD-WRT router set as a wireless repeater with a computer connected to it running a DHCP server. The computer takes care of the IP addreses so that we have a stable wired/wi-fi intranet when the phone is not sharing it's internet connection.
Update: I founde another solution/project based on OpenWRT
http://ofmodemsandmen.com/
my exploits using a Linksys E3000 have been documented here:
http://tweakedrom.com/forum/viewtopic.php?f=6&t=7
I kind of like the USB tether thing. The E3000 Router USB power charges and maintains my SCH-i605 (Verizon Samsung GN2) running CM12.1. I use this as a backup connection or in the event of main cable modem service disruption at the house. It is also great for traveling (hotels) or camping (car 12v adapter for router, or power inverter)
I just bought a used Asus RT-N66U router. Out of the box it supports USB tethering with android phones and dual WANs for failover/load balancing. ROOter also works, tested the x86 build on an old PC. I'm looking to cut out my ISP completely and just use 4G from the phone for internet. The issue I have run into is that I can't appear to do DDNS or port forwarding. My wireless carrier (verizon) appears to be employing a double NAT. If I perform a speedtest on the ookla app, I get 2 IP addresses in the results, an "internal" and an "external". Both are in the public range but I can't DDNS in with either of the IPs, nor can I get any kind of service working.
Anyone have a solution for this? I'm not 100% sure but I wonder if using the SIM card in a dedicated USB 4G modem (not tethering via the phone) would get me a direct IP? I suppose I could also sign up for a VPN service and run OpenVPN on the router but that'd cut down on speeds I think. I've also heard about punching holes for ports but I'm not 100% sure how that works, I assume I still need some 3rd party public IP for relaying or something.

Reverse tethering using laptops wifi and usb question

I have a GT-p3113 7.0 running 4.1.1 stock and rooted. I have been trying to connect to my laptops hotspot using wifi. I can create the connection and connect with an IP, however no shared internet. I used the CMD prompt to create the hostednetwork then share my lan connection.
> netsh wlan set hostednetwork mode=allow ssid="name of connection" key="password"
Share the connection from setting in the control panel then start it up.
>netsh wlan start hostednetwork
I can connect with an assigned IP but no internet.
So... while I am "connected" I used the USB reverse tether app with the tunnel local app and connect to the internet. and yes I can no connect to Gplay and download from most app sites with no problem because I do have an active wifi connection... just not using it to get to the site..
Can't use https , not sure why yet. or if it is even possible.
But I would like to be able to use my wifi connection if at all possible... does anyone know a way to do this? I do not want to use Conectify as it tells me to unistall my vzaccess ( I can't ) I have a 4g wireless card for my laptop. also tried virtual router, same thing.. connects, gets ip, but no internet. Has anybody been able to get around this? or do you think it is just my work network. I want to use this when I travel an am in a hotel but don't want to carry around another piece of hardware for a hotspot.
Thanks

How can I share mobile data to connected wifi thru network bridge in Andoird 6.0

Hello Experts,
I am not a super expert but working on it on own interest basis.
My situation is,
I have one broadband connection thru ADSL+wireless router.
Normally my PC & other android devices at home are connected to wireless router of broadband.
Sometimes, this broadband connection fails for a couple of days.
I have one Android 6.0 mobile device which have unlimited data plan, but other android devices like mobile, Tabs does not have data connection.
During that time,
I create a hotspot & share to other wireless devices, but my PC does not connect until I connect thru USB tether.
Is it possible ??
To make a bridge in android 6.0 MM, between data connection & wi-fi ?? (I will connect it to wireless router with out hotspot), & set the DNS & gateway manually in the PC & wireless router.
What I have already done
Connected my mobile having data conn to win 10 PC with USB tether & PC is also connected to adsl router thru LAN.
Now,
I have checked the address of USB tether network IP (192.168.XX.XX), gateway (192.168.XX.XX) & DNS (192.168.XX.XX).
Then I created a bridge connection at PC between ADSL LAN & Tether Connection. Set above mentioned IP, gateway & DNS at created bridge connection.
Then I logged in into ADSL router,
Changed its IP from 192.168.1.1 to 192.168.XX.XX ( matching with USB tether conn except last digit).
Then I connected all my android devices to ADSL router wireless network & manually set the DNS address to every network same as USB tether DNS.
profit :
Not much, But I am getting a strong wifi network signal from ADSL compared to mobile hotspot & all my devices connected to internet being at different places of home with different people.
My above query was to get rid of USB tether in this situation.
Thank you for reading all above & suggestions if any.
[email protected] said:
Hello Experts,
I am not a super expert but working on it on own interest basis.
My situation is,
I have one broadband connection thru ADSL+wireless router.
Normally my PC & other android devices at home are connected to wireless router of broadband.
Sometimes, this broadband connection fails for a couple of days.
I have one Android 6.0 mobile device which have unlimited data plan, but other android devices like mobile, Tabs does not have data connection.
During that time,
I create a hotspot & share to other wireless devices, but my PC does not connect until I connect thru USB tether.
Is it possible ??
To make a bridge in android 6.0 MM, between data connection & wi-fi ?? (I will connect it to wireless router with out hotspot), & set the DNS & gateway manually in the PC & wireless router.
What I have already done
Connected my mobile having data conn to win 10 PC with USB tether & PC is also connected to adsl router thru LAN.
Now,
I have checked the address of USB tether network IP (192.168.XX.XX), gateway (192.168.XX.XX) & DNS (192.168.XX.XX).
Then I created a bridge connection at PC between ADSL LAN & Tether Connection. Set above mentioned IP, gateway & DNS at created bridge connection.
Then I logged in into ADSL router,
Changed its IP from 192.168.1.1 to 192.168.XX.XX ( matching with USB tether conn except last digit).
Then I connected all my android devices to ADSL router wireless network & manually set the DNS address to every network same as USB tether DNS.
profit :
Not much, But I am getting a strong wifi network signal from ADSL compared to mobile hotspot & all my devices connected to internet being at different places of home with different people.
My above query was to get rid of USB tether in this situation.
Thank you for reading all above & suggestions if any.
Click to expand...
Click to collapse
Yez and yes, search Hack5 in youtube and find the video relating to wifi pineapples( the bridge/router) and you will find everything you need , along with EasyTether pro(works fully tested to bypass tethering restrictions) . I dont know how the pineapple/router works but I know EasyTether uses adb to take and make a usb tethered connrection, then with a moderate-advanced setup(ie. wifi pineapple) you will be broadcasting wifi to any device you need. The only downside is you have to usb tethr to the pineapple at all timez to make a usable wifi,So in my opinikn best to buy anothr $45 a mnth plan especially 4 tethering, tho Im just now switching to a ISP for my internet it did the job, i even freelanced for awhile all remotely using the hotspot/created wifi/bridged connection.Hope that hellps brutha
Th
Tks...Bro...
I did it long before without spending a single penny.
I simply used network hack and bluffed the pc and other devices...It is working like charm....

Categories

Resources