Webserver using mobile connection - Hero, G2 Touch Q&A, Help & Troubleshooting

I have never got any app that hosts web page to work when I'm using mobile connection.
Wlan connection always works and another users seem to get it working using mobile connection.
Same problem with all ROMs that I have used. How to fix?

Mehumummo said:
I have never got any app that hosts web page to work when I'm using mobile connection.
Wlan connection always works and another users seem to get it working using mobile connection.
Same problem with all ROMs that I have used. How to fix?
Click to expand...
Click to collapse
Ummm. What network are you on? Remember most networks use NAT so save IP addresses. So your web server might only work for other users on the same subnet of your provider.
A phone isn't an ideal server. Can't you spend $1 or so per month on shared hosting on a server somewhere?
This is why it works on WiFI, as you have a dedicated IP address.
How can an incoming connection to 155.55.55.55 (for example, which covers all your network's users) know to direct an incoming port 80 (web) request to your phone? As opposed to the many other people that would try this?
I think Vodafone UK gives individual Ips though, so you could switch provider if it matters

anon2122 said:
Ummm. What network are you on? Remember most networks use NAT so save IP addresses. So your web server might only work for other users on the same subnet of your provider.
A phone isn't an ideal server. Can't you spend $1 or so per month on shared hosting on a server somewhere?
This is why it works on WiFI, as you have a dedicated IP address.
How can an incoming connection to 155.55.55.55 (for example, which covers all your network's users) know to direct an incoming port 80 (web) request to your phone? As opposed to the many other people that would try this?
I think Vodafone UK gives individual Ips though, so you could switch provider if it matters
Click to expand...
Click to collapse
I do know what NAT is (as it always ruins everything). I was not aware that mobile connection uses NAT as I imagined that operators doesn't put their users under same ip.
I'm not hosting something that any server could, mostly access to my phone:
files, sms, remote usage etc.
So there is no way but change operator?

Mehumummo said:
I do know what NAT is (as it always ruins everything). I was not aware that mobile connection uses NAT as I imagined that operators doesn't put their users under same ip.
I'm not hosting something that any server could, mostly access to my phone:
files, sms, remote usage etc.
So there is no way but change operator?
Click to expand...
Click to collapse
T-mobile definitely uses nat, as I have tried to ssh into my phone etc. I needed to make a listen server and dial into it from the phone.
So what you are doing needs a unique ip or upnp support (which I doubt android can do). But also it needs an isp that don't block ports or anything.
We use vodafone sims for remotely connecting to remote wind farms, as it allows incoming radmin connections.

anon2122 said:
So what you are doing needs a unique ip or upnp support (which I doubt android can do).
Click to expand...
Click to collapse
I guess that no operator supports UPnP/IGD to poke holes in their NAT.
If it's only for transferring files, SwiFTP supports a proxy server that is provided by the author. SwiFTP doesn't support SSL, and I don't think that I would want to send the plain text password to my phone over the Internet.
Another possibility is a VPN from the phone to the PC or router. Than you can start a server like kWS, Android Desktop, PAW Server, I-Jetty, WebFileSystem, etc.

VPN sounds good, gonna try when I get to home.

I can get connection using vpn.
However if there are no connection for short time or phone is restarted then vpn connection goes away.
I would like it to reconnect asap but it isn't meant to be that way :/
Couldn't find anything to reconnect vpn.

I didn't try the built-in VPNs (Android 2.1), but it works fine with OpenVPN: even when changing from Wifi to 3G it reconnects after a few seconds. You need root for OpenVPN AFAIK. It works great with VillainROM 12 which comes with OpenVPN. There's a guide at the VillainROM forums.

Thanks got it working
Lol huge decrease to battery life, suppose you don't have any hints for that?

Related

***HOWTO: Internet Sharing over WiFi*** (Updated 08-Nov-2007)

I have figured out how to use Internet Sharing over WiFi, which essentially makes my Hermes an Access Point.
Do the following:
1) Open Settings->Internet Sharing. Enable IS for Bluetooth PAN.
2) Change HKLM\Comm\ConnectionSharing\PrivateInterface to "TIACXWLN1" (for the Hermes). It should currently be "BTPAN1".
3) Open Settings-> Connections -> Wi-Fi. Select Network Adapters tab. Click IEEE 802.11b/g Compatible Wi-Fi.
4) Enter IP address 192.168.1.1 and subnet mask 255.255.255.0. Click OK.
5) Select Wireless tab. Add New.. to add the Network name for your ad-hoc network (I prefer "adhoc")
6) Set the client computer to use the same ad-hoc network. Client will receive an IP address from the device (don't need to manually set the IP).
And it works!
Interestingly, while IS was enabled, wifi stayed on and connected when the phone went to standby mode. Normally wifi turns off to save battery during standby. I imagine this will drain your battery in a hot minute, so bring your charger.
UPDATE (28-Oct-2007): Attached are some more beta releases of patched intshare.dll. I've created versions for most of the adapter names people have requested. By renaming this dll to intshare.dll and copying it to \Windows, Internet Sharing will use TIACXWLN1 (or whichever dll you use) when Bluetooth PAN is selected. I.e., if you use this, you will not need to make the registry changes above.
This will handle the registry part, but of course you'll still need to set up the ad-hoc network on your own.
UPDATE (03-Nov-2007): I've attached a beta version of the patched Internet Sharing app. It's in its own cab so it won't overwrite your existing IS. This app replaces Bluetooth PAN with 802.11b/g Wireless Ethernet. No registry hacking required. This app is well suited to replace the MS version on cooked ROMs.
If you use an adapter other than TIACXWLN1 then replace intshare.dll just as before.
UPDATE (08-Nov-2007): Attached is v 0.9.1 of the Internet Sharing Mod. This update addresses the 10 minute disconnect bug most people have experienced.
best,
fluxist
This is the first thing I'll try when i'm at home again!
I can't believe this! Waiting for this since i got my Hermes. Thx for this development. This is the greatest effort since Hard-SPL and WM6 upgrade.
Now I can connect my XBOX360 to the Internet without starting my PC and sharing it over PC-LAN. USB-Charger is at the Front of the XBOX360.
I hope it will work.
You said the Max-Connections can be reworked. Does this mean it will support Ad-Hoc AND WLAN-Routing to many recepients too?
This worked for me too on a Kaiser/TYTN II
I'm doing some additional experimentation to see what exactly this can do - for instance to replace a bluetooth connection to a laptop with a wifi one?
odessaranger said:
I'm doing some additional experimentation to see what exactly this can do - for instance to replace a bluetooth connection to a laptop with a wifi one?
Click to expand...
Click to collapse
not sure what you mean by replacing the connection. With ICS, obviously you cant share your connection over BT while sharing it over WIFI. and you can normally use wifi to connect to another computer by using an ad-hoc connection and manually entering a private ip on the same subnet for each computer.
this is awesome. worked perfectly for me.
After trying to stuff around with a proxy server for days and then you come along with something as simple as this....
boniestlawyer said:
this is awesome. worked perfectly for me.
After trying to stuff around with a proxy server for days and then you come along with something as simple as this....
Click to expand...
Click to collapse
Were you able to use more than one client connected?
I'll admit..when I saw this my first thought was that this was another "How can I do internet sharing via wifi" and the title was just misleading..instead I find myself very impressed with your accomplishment. Very well done! As a "hack" untill you figure out how to mod the dll which I'm sure is only a matter of time now that you have pointed everyone in the right direction, you can export the registry key for both the Bluetooth adapter and the Wifi one and "import" whichever one you want to use at a given time...it's not pretty but it should work.
Some issues of concern would be that the AP is wide open and can be connected to by anyone with no password etc...the bluetooth pairing allowed some security but using the wifi doesn't have the same shared key protection...or am I missing something obvious?
fluxist said:
I have figured out how to use Internet Sharing over WiFi, which essentially makes my Hermes an Access Point.
Do the following:
1) Open Settings->Internet Sharing. Enable IS for Bluetooth PAN.
2) Change HKLM\Comm\ConnectionSharing\PrivateInterface to "TIACXWLN1" (it should currently be "BTPAN1").
3) Open Settings-> Connections -> Wi-Fi. Select Network Adapters tab. Click IEEE 802.11b/g Compatible Wi-Fi.
4) Enter IP address 192.168.1.1 and subnet mask 255.255.255.0. Click OK.
5) Select Wireless tab. Add New.. to add the Network name for your ad-hoc network (I prefer "adhoc"
6) Set the client computer to use the same ad-hoc network. Client will receive an IP address from the device (don't need to manually set the IP).
And it works!
When I used it I was only able to get one client to connect, however there is a reg value, HKLM\Comm\BTPAN1\Parms\MaxConnections that may help if it is changed from 1 to 2 (or whatever). But I haven't tried.
Interestingly, while IS was enabled, wifi stayed on and connected when the phone went to standby mode. Normally wifi turns off to save battery during standby. So that's a good thing, although I imagine this will drain your battery in a hot minute, so bring your charger.
I was going to release a patched intshare.dll so that the normal Internet Sharing utility can do this, but I'm having trouble changing the section addresses in the dll to the right values after I add data. If anyone knows how to do this PM me and I'll give you the details.
best,
fluxist
Click to expand...
Click to collapse
thank you.
this work actually stemmed from my trying to share my phone's tethered connection with another client. by which i mean, my laptop is in a cafe online through my 8525 using Internet Sharing(IS) over usb. and i want to provide a connection, through wifi or ethernet, to my gfriends laptop. this actually isnt normally possible b/c WM IS and XP Internet Connection Sharing (ICS) both have 192.168.0.1 hard-coded as the gateway IP. so the phone uses that IP to give my laptop a connection, and my laptop tries to use the same IP with ICS. anyway, it fails because of this. i was able to get past that problem by going into Settings -> Wi-Fi -> Network Adapters -> Remote-NDIS and manually setting 192.168.1.1. This lead to the breakthrough with regards to wifi. prior to that id been trying all different ways to have the wifi adapter spoof the bt pan, however i could never get dhcp to assign an IP to the client. this is what it took.
and it's great that DHCP does in fact work here. it makes it dead easy for any arbitrary client to get online. just join the adhoc network as if it were an AP.
anyway, security-wise the ad-hoc network can use WEP or WPA, so security doesn't have to be a problem. the procedures for doing this are the same as normal.
and i haven't tried that reg key to enable multiple clients. but it looked like an obvious choice. i'll leave that as an exercise for the reader
fluxist
I ran into same issue with XP internet sharing. Another workaround is to have a linux machine do NAT( since you can specify the IP used there) to whatever other clients you want and have it connected via bluetooth dun or bluetooth PAND (which is the solution I use to give internet to my replaytv and a couple of laptops in the house)...my edge connection is my main internet feed..a cacheing proxy such as wwoffle, squid of my personal preference "polipo" helps alot to when using gprs/edge etc since it helps with the latency.
fluxist said:
thank you.
this work actually stemmed from my trying to share my phone's tethered connection with another client. by which i mean, my laptop is in a cafe online through my 8525 using Internet Sharing(IS) over usb. and i want to provide a connection, through wifi or ethernet, to my gfriends laptop. this actually isnt normally possible b/c WM IS and XP Internet Connection Sharing (ICS) both have 192.168.0.1 hard-coded as the gateway IP. so the phone uses that IP to give my laptop a connection, and my laptop tries to use the same IP with ICS. anyway, it fails because of this. i was able to get past that problem by going into Settings -> Wi-Fi -> Network Adapters -> Remote-NDIS and manually setting 192.168.1.1. This lead to the breakthrough with regards to wifi. prior to that id been trying all different ways to have the wifi adapter spoof the bt pan, however i could never get dhcp to assign an IP to the client. this is what it took.
and it's great that DHCP does in fact work here. it makes it dead easy for any arbitrary client to get online. just join the adhoc network as if it were an AP.
anyway, security-wise the ad-hoc network can use WEP or WPA, so security doesn't have to be a problem. the procedures for doing this are the same as normal.
and i haven't tried that reg key to enable multiple clients. but it looked like an obvious choice. i'll leave that as an exercise for the reader
fluxist
Click to expand...
Click to collapse
Impact on BT?
What a brill find. Well done.
Does it break anything with bluetooth?
Tx
can someone elaborate what this is for, maybe give a sample scenario on using this?
Is this basically allowing a computer to use the internet connection of the pda phone (ie EVDO, 1RxTT, etc.) through wifi, instead of bluetooth or USB cable? (ie tethering?)
if someone manages to get this working with xbox 360 make a tutorial plx ;D
superflysocal said:
can someone elaborate what this is for, maybe give a sample scenario on using this?
Is this basically allowing a computer to use the internet connection of the pda phone (ie EVDO, 1RxTT, etc.) through wifi, instead of bluetooth or USB cable? (ie tethering?)
Click to expand...
Click to collapse
thats what i wanna know , could i use my hsdpa connection via wifi to my psp?
I'll do a tutorial when i'm at home again. Maybe somebody with know-how can make a cab-file v1.0 for this "WLAN-Modem hack".
This surely will be a great app.
yes, your xbox and your psp should be able to connect just fine, as long as they support ad-hoc wireless (which i imagine they must). this hack will allow the phone to act like any normal wifi access point. the only difference is the client has to be seraching for ad-hoc networks in addition to normal APs.
the difficulty with creating a cab file at this point is that the registry setting is not persistent. that is, it must be set each time you enable IS. the setting is lost every time IS starts. this is why i am trying to patch the dll - so wifi will work as a normal, additional option in Internet Sharing (and hopefully this should be ready soon).
fluxist
when you say click "IEEE 802.11b/g Compatible Wi-Fi" do you mean the wifi network adapters in my case would be "tiacxwln compatible wireless ethernet"? im trying it on a 6700 WM5
I would LOVE to get this working on my TMO WM6 Wing, but I'm having issues:
1) Open Settings->Internet Sharing. Enable IS for Bluetooth PAN.
Got it - except on my device it's Programs -> accessories -> IS
2) Change HKLM\Comm\ConnectionSharing\PrivateInterface to "TIACXWLN1" (it should currently be "BTPAN1").
Check - but is the T1ACXWLN1 device specific? If so, how can I find the interface ID on my device?
3) Open Settings-> Connections -> Wi-Fi. Select Network Adapters tab. Click IEEE 802.11b/g Compatible Wi-Fi.
For me it's settings -> connections -> network cards, but I don't have an IEEE 802.11 listed. I connected to an existing AP, and found that my 'SDIO WLAN Wireless Adapter' does receive a DHCP address, so I tried changing it to 192.168.1.1...
4) Enter IP address 192.168.1.1 and subnet mask 255.255.255.0. Click OK.
5) Select Wireless tab. Add New.. to add the Network name for your ad-hoc network (I prefer "adhoc"
Found this and set up my WING-FI network.
6) Set the client computer to use the same ad-hoc network. Client will receive an IP address from the device (don't need to manually set the IP).
The client PC connects to WING-FI, but never receives an IP address...
What could I be doing wrong? Is it the hardware ID in the registry? I've created the network with WPA, then after the connection problems, with no security - but still no change.
Thanks!!
Ryan
neonstorm said:
I would LOVE to get this working on my TMO WM6 Wing, but I'm having issues...
Click to expand...
Click to collapse
Very likely the string TIACXWLN1 needs to be something different. Check HKLM\Software\WZCSV\Parameters\Interfaces\
There should be a key there with the name of your wireless adapter. It should end in "1".
And if not there, it should also be visible under HKLM\Comm\
Let us know how it works out.
EDIT: I just noticed you typed T1ACXWLN1. The string must be TIACXWLN1. That's "i" not one.
fluxist
I own a PPC6700 as well and I was able to get it working no problem other than the fact that our wireless adapter is not the same as the one mentioned. The reg edit is the same it's just the first network adapter in the list when you create the network settings.
fluxist said:
yes, your xbox and your psp should be able to connect just fine, as long as they support ad-hoc wireless (which i imagine they must). this hack will allow the phone to act like any normal wifi access point. the only difference is the client has to be seraching for ad-hoc networks in addition to normal APs.
the difficulty with creating a cab file at this point is that the registry setting is not persistent. that is, it must be set each time you enable IS. the setting is lost every time IS starts. this is why i am trying to patch the dll - so wifi will work as a normal, additional option in Internet Sharing (and hopefully this should be ready soon).
fluxist
Click to expand...
Click to collapse
If you send me the dll I could look into it.
i have some experience with editing dlls.
good work man

[UPDATED 2/25/2009] SocksProxy v1.0: Free SOCKS proxy for internet sharing

I have created an SOCKS proxy server application to run on Windows Mobile phones. A SOCKS proxy is a proxy server that is capable of forwarding nearly all types of network traffic, similar to a NAT router. It is very simple to use. Simply type in the port you would like the proxy server to listen on (defaults is 1080), then click the large "Start Proxy" button.
In order to run this application you will need the .NET Compact Framework 3.5 installed on your device.
Some applications are SOCKS-ready and others are not. You can use FreeCap (freeware) to SOCKS enable any Windows application. ** FreeCap seems to have problems connecting to SocksProxy. Let me know if it works or doesn't work for you. **
I am *NOT* responsible for any fees charged to anyone for the use of this software. There is no warranty and no guarantee.
[UPDATE 2/25/2009]
I've completed the new version of SocksProxy. It implements socks version 4a. There is no security, so it will allow anyone to connect with any user id.
Please let me know of any issues you find.
[UPDATE 2/24/2009]
SocksProxy v1.0 Reboot
--------------------------------------------------------------------------------
I've completed the new proxy server. It looks pretty much like the old one, but I've anchored the controls to the edges so it should scale properly with VGA devices.
I've written a new Socks 4a proxy from scratch and completed ditched all the old code. It seems to be working pretty well, though a bit slow. I think I need to increase the size of my read buffers. I will have to write a smarter heuristic for determining the size of the buffer per connection though. I have them at 128 Kb now. I need to grow each buffer dynamically according to how it's being used, that way I don't create large buffers for connections that are only transfering small amounts before closing (downloading a small gif or javascript file, for example).
I'll probably release it tomorrow after some more testing.
BTW: I'm posting this through the proxy right now!
[UPDATE 2/24/2009]
I've decided not to move forward with the J2ME version of SocksProxy. I will however be writing a new .NET CF version. The current version's proxy is based on code I ported from a proxy targeted to the standard .NET framework. Some features in the standard framework are absent in the compact framework. When porting the proxy I pretty much just did it as quick and dirty as I could because I really wanted something that just got the job done. I didn't care how stable or 'good' it was because I hadn't even intended on releasing it to anyone. Since it looks like there's still a lot of interest I will be writing a new one from scratch. Don't expect too much; It'll be the simplest thing that possibly works, but it'll be stable and reliable.
I'll be naming this version SocksProxy 1.0 Reboot. I'm not upping the version number because I'm really not going to be adding any new features.
[UPDATE 11/4/2008]
I am working on a J2ME version of this application. I will no longer be maintaining the .NET version of the application. The SVN repository for the .NET version will continue to be available. I have no plans on taking it down.
I have decided to switch to J2ME because I will be able to reuse source code in a future Android release -- that is, if Google or someone adds the ability for Android to have more than one IP address.
[UPDATE 10/27/2008]
There is a usage issue with the application with certain configurations of Windows Mobile and Activesync. It seems that when the Activesync host (your PC) has a connection to the internet the handheld device will prefer to connect to the internet via the PC's connection rather than its cellular connection. This completely eliminates any benefit to using the proxy. Does anyone know how to prevent the handheld from routing its internet traffic back through Activesync? Note that this is NOT solved by setting the "Allow data connections" setting in Activesync.
[UPDATE 10/27/2008]
I have updated the SVN respository (https://pchasco.homedns.org/svn/SocksProxy/trunk). Here are the changes:
* Changed "Listening on" box to list all IPs on the handheld
* Added an IP box. Enter an IP to listen on that IP or leave blank to listen on all.
* Rearranged form
* Added "Use selected IP" button to insert into the IP box the IP selected in the list of available IP addresses.
You can enter any IP address in the IP box, but the proxy will fail to start if the IP is not valid for your device.
Hi pchasco,
Could you explain a bit more what this does (and how it works)?
The reason I ask is that I'm looking for an application for the PPC which allows me to share its internet connection by pointing the Desktop browser' proxy to the PPC.
This allows me to be connected to the wired network and using this proxied browser to browse even the blocked sites ...
Can your application be used for this?
If so could you also explain how it works..
I've ran the App on my PPC, and clicked start, this gave me an IP address
next i hooked it up to USB and pointed IE's proxy to that address...didn't work
I also tried to activate the 3G first and/or with ICS activated
but both times I didn't see a IP address...
I'm probably doing something wrong..
Thanks
This is a SOCKS proxy, so it does not work in quite the same way that a normal HTTP proxy does. For internet explorer you'll have to open the advanced proxy options and fill in the information for the SOCKS hostort entry.
Can someone please explain a sample usage of this software on Windows Mobile?
pchasco said:
This is a SOCKS proxy, so it does not work in quite the same way that a normal HTTP proxy does. For internet explorer you'll have to open the advanced proxy options and fill in the information for the SOCKS hostort entry.
Click to expand...
Click to collapse
Have you used this with ICS? In other words, share your internet connection with a computer and then have the computer connect via your sock proxy to the internet?
abdulzis said:
Can someone please explain a sample usage of this software on Windows Mobile?
Click to expand...
Click to collapse
I'm not sure what you mean. An example of how to use it or an example describing why someone would want to use it?
hoopsbwc34 said:
Have you used this with ICS? In other words, share your internet connection with a computer and then have the computer connect via your sock proxy to the internet?
Click to expand...
Click to collapse
I am not sure why you would need to use both SOCKS proxy and ICS at the same time. They are both means to provide internet connectivity through your phone to another device. If ICS were an option on my phone, I would use it over SOCKS unless the client device did not support it.
pchasco said:
I am not sure why you would need to use both SOCKS proxy and ICS at the same time. They are both means to provide internet connectivity through your phone to another device. If ICS were an option on my phone, I would use it over SOCKS unless the client device did not support it.
Click to expand...
Click to collapse
Basically, I'm trying to allow access to two networks at the same time. So I want to adjust my settings in firefox to point to my WM phone and your socks proxy. Then my other applications and IE can use my LAN. Otherwise, to get my WM ICS to work I have to disable my LAN connection which I need for certain apps.
edit... I'm good with using it without ICS, but that doesn't seem to work either. No matter when I click start proxy, I get an IP of 0.0.0.0 and if I connect my computer via USB I can't ping that address.
hoopsbwc34 said:
Basically, I'm trying to allow access to two networks at the same time. So I want to adjust my settings in firefox to point to my WM phone and your socks proxy. Then my other applications and IE can use my LAN. Otherwise, to get my WM ICS to work I have to disable my LAN connection which I need for certain apps.
Click to expand...
Click to collapse
Then setting the SOCKS proxy setting without setting any other proxy settings should work in Internet Explorer. I've been trying to test it, but my phone refuses to access the internet through the cellular connection right now; it's always going through my PC while activesync is connected. I can't get it to stop! The funny thing is IE on my PC is making its HTTP requests through my phone, then my phone is going right back through my PC to the internet!
pchasco said:
Then setting the SOCKS proxy setting without setting any other proxy settings should work in Internet Explorer. I've been trying to test it, but my phone refuses to access the internet through the cellular connection right now; it's always going through my PC while activesync is connected. I can't get it to stop! The funny thing is IE on my PC is making its HTTP requests through my phone, then my phone is going right back through my PC to the internet!
Click to expand...
Click to collapse
That's what I tried... but the IP address I get is 0.0.0.0 from your app. What IP do you usually get back when you run it? Do you just connect via USB? If ActiveSync is running is that an issue?
pchasco said:
Then setting the SOCKS proxy setting without setting any other proxy settings should work in Internet Explorer. I've been trying to test it, but my phone refuses to access the internet through the cellular connection right now; it's always going through my PC while activesync is connected. I can't get it to stop! The funny thing is IE on my PC is making its HTTP requests through my phone, then my phone is going right back through my PC to the internet!
Click to expand...
Click to collapse
I think there is a setting in ActiveSync that says "allow wireless connections when connected" sounds like that might be your problem.
Mr_Gee said:
Hi pchasco,
Could you explain a bit more what this does (and how it works)?
The reason I ask is that I'm looking for an application for the PPC which allows me to share its internet connection by pointing the Desktop browser' proxy to the PPC.
This allows me to be connected to the wired network and using this proxied browser to browse even the blocked sites ...
Can your application be used for this?
If so could you also explain how it works..
I've ran the App on my PPC, and clicked start, this gave me an IP address
next i hooked it up to USB and pointed IE's proxy to that address...didn't work
I also tried to activate the 3G first and/or with ICS activated
but both times I didn't see a IP address...
I'm probably doing something wrong..
Thanks
Click to expand...
Click to collapse
Sounds like the same thing that is happening to me. I finally got it to give me an IP address, but only if my data connection is inactive. As soon as the data connection is active it becomes a 0.0.0.0 IP address. Bug?
I tried to establish the IP, then activate the data connection... still doesn't work when I enter the IPort into my proxy list for firefox.
hoopsbwc34 said:
That's what I tried... but the IP address I get is 0.0.0.0 from your app. What IP do you usually get back when you run it? Do you just connect via USB? If ActiveSync is running is that an issue?
Click to expand...
Click to collapse
I am not sure why you are receiving 0 as your IP address. Check in Settings->Connections->USB to PC that "Enable advanced network functionality" is selected.
Gave it another try
Connected to ActiveSync (AS) loaded the application
removed the AS connection, started the application
It showed me the IP address op 127.0.0.1 (localhost)
Stopped the App, initiated the gprs and started the App again.
now i'm getting an IP of 0.0.0.0, I restarted the App a couple of times but no dice
I also checked if the advanced network functionality was enabled and it was..
Mr_Gee said:
Gave it another try
Connected to ActiveSync (AS) loaded the application
removed the AS connection, started the application
It showed me the IP address op 127.0.0.1 (localhost)
Stopped the App, initiated the gprs and started the App again.
now i'm getting an IP of 0.0.0.0, I restarted the App a couple of times but no dice
I also checked if the advanced network functionality was enabled and it was..
Click to expand...
Click to collapse
Hmm... I'm not sure what's going on here. 127.0.0.1 is the loopback interface-- It is only valid for your phone to connect to itself. If your computer attempted to connect to 127.0.0.1 it would connect to itself, not your phone.
pchasco said:
Hmm... I'm not sure what's going on here. 127.0.0.1 is the loopback interface-- It is only valid for your phone to connect to itself. If your computer attempted to connect to 127.0.0.1 it would connect to itself, not your phone.
Click to expand...
Click to collapse
Yes I know... :-/
Well, if I have time in the next few days I will take a look and see whether there is anything I can do. Maybe there is another IP address available on your device but for whatever reason I'm displaying the loopback instead of the external interface.
What happens when you set your proxy client up to go to 169.254.2.1:1080?
Mr_Gee said:
Gave it another try
Connected to ActiveSync (AS) loaded the application
removed the AS connection, started the application
It showed me the IP address op 127.0.0.1 (localhost)
Stopped the App, initiated the gprs and started the App again.
now i'm getting an IP of 0.0.0.0, I restarted the App a couple of times but no dice
I also checked if the advanced network functionality was enabled and it was..
Click to expand...
Click to collapse
Sounds like the same bug I am getting.
An example describing why someone would want to use it?
abdulzis said:
An example describing why someone would want to use it?
Click to expand...
Click to collapse
If you can't use ICS and want to connect to the internet from your desktop, you can connect your phone using USB and start this proxy, then you can setup your desktop connection to use the proxy to get internet access.

[Q] Proxy Servers OMG !!!

OK people... some of you people much cleverer than me PLEASE tell me there's a way around this.
My internet at home runs through a proxy server, so I have the IP address and port.
This internet connection is broadcast using wifi around my house. My PCs can connect to this just fine, using the IP and port in my Windows networking configuration.
My Vibrant will NOT work. Here are the scenarios I am dealing with :
If I connect to the wireless I can see my home network, and browse Windows network shares on my phone just fine.
If I go into the wireless | advanced | proxy settings (I am running a Bionix 2.2 ROM - Onyx 4.2 I think) and set my proxy IP and port then I can browse the internet in the default browser but NO other apps will make an internet connection. Odd since the proxy connection seems to me to be attached to the wireless connection, not the browser specifically.
So I installed and configured transproxy 3.8 beta (which doesn't seem to be vibrant specific, but installs and configures OK), and entered the same details and enabled the proxy connection, and NOTHING, including the default browser, will make an internet connection.
In all cases my connection to the wireless network itself is perfectly fine.
I've spent a couple of days trying to find a sensible solution to this, but have found nothing helpful.
Anyone out there had any similar experiences, or better yet found some kind of awesome solution ?
Very much appreciate any answers.
Ok before I give up completely, no one has gotten a Vibrant properly connected through a proxy server? It would at least be something to know it is known to be impossible, then I could stop obsessing and concentrate on being annoyed?
Anyone?
Sent from my SGH-T959 using XDA App
are you sure you use a proxy server? I've never seen a home network that uses one. A NAT firewall / router isn't a proxy server.
If you are running a proxy server, what do your proxy server logs say?
Can you access services on other than port 80? (email for example)
Proxy on a home network isn't out of the norm. I know guys who run them to block certain sites from their kids. Yes I know there are other options out there, they just decided to use a proxy server.
Sent from my SGH-T959 using XDA App
I know I am reviving a old thread, but I am also looking for a solution to this. I have tried using AutoProxy with no luck. It configures OK, but when it is on it is as if I have no network connection at all.
I don't need authentication, it is a HTTP 1.1 compliant proxy and all I need is host and port. In my case I set up a RabbIT4 proxy on a VPS linux host in a data center with multiple redundant tier one network providers. My proxy minifys HTML, JavaScript, and CSS - then gzips it. It also replaces ADs with a 1x1 transparent gif and re-samples all images to a quality 20 jpeg.
I used to run an ISP and we did this as an optional service for our dial-up customers. It REALLY improves slow connections.
So anyhow I would appreciate it if you let me know of any solutions you found this might work. Anyone with ideas please chime in.
Try flashing a different rom and see if you have the same problem....... It may be as simple as a conflict with that rom.
I have never heard of a case where this kind of problem exists. It sounds like a rom to wireless router conflict, but assuming it is exactly what you say, then if the setting are set for example, to have controls on access then, it would stand to reason remove them from the server side it should resolve the problem. But I would look at trying a different rom 1st,
The proxy works great on my desktop, and the phone's ROM has the option to set a proxy for the Wi-Fi connection (which works). The issue is I don't need the proxy for my Wi-Fi, that is fast - I need it when I am on the edge network, which is often.
I can't change ROM, Trigger 3.3 is too perfect for me to budge. I have both busybox and iptables, so I don't know what is up.
EDIT, I have tried 3 more apps with the same results, either they don't actually set the proxy and I have net, or they do set it and I lose connection. To be fair I have only been able to test when on Wi-Fi and I could set that from the ROM options, I need to try testing when I am on cellular - I just don't think it is going to make a difference.
Friggin proxies!
be1ieve1111 said:
Friggin proxies!
Click to expand...
Click to collapse
Proxies can be your friend, my friend! Imagine getting about 30kps on edge and your trying to look something up real quick, but the pages keep timing out. Meanwhile right next to you with the same basic connection is me, happily surfing away.
Why, because instead of sending my request to the website it went to my proxy, sitting in a class 3 data center in Los Angeles. My proxy made the request for me with its OC3 Internet connection, then took all the white space out of all the HTML, JavaScript, and CSS - then it gzipped it. It also converted all images to highly compressed low quality jpegs. Finally, it sent me back the reduced size data (reduced by about 78% in fact) and all the processing happened in the blink of an eye.
With a fast Internet connection the proxy just gives you lower quality pages with twice the page load time, but on slow connections it can be up to 5 times faster. Hmm. . . 5 times faster, where have I hear that before?? Oh yea, AOL, Earthlink, and others were promising that with their "Accelerated dial-up". Guess what?! This is exactly what they where doing. It is an old Dial-Up ISP trick. That is why I know how to do it. Now if only my phone would co-operate. Friggin proxies!
bump
did you ever figure this out? I think I may have found how to do it without any applications but you'll need to be rooted.
jamesd86 said:
bump
did you ever figure this out? I think I may have found how to do it without any applications but you'll need to be rooted.
Click to expand...
Click to collapse
Do tell [10 char]
Build prop edit but I dont have a server to test with...any chance you could set up a generic account on your server to test with? Pm the details instead of putting in open if you can.
Basically adding the entry
Code:
net.gprs.http-proxy=yourproxy
To the build prop. Im not certain if there are any other lines I need to add but would like to try.
Sent from my SGH-T959 using XDA Premium App
jamesd86 said:
Build prop edit but I dont have a server to test with...any chance you could set up a generic account on your server to test with? Pm the details instead of putting in open if you can.
Basically adding the entry
Code:
net.gprs.http-proxy=yourproxy
To the build prop. Im not certain if there are any other lines I need to add but would like to try.
Sent from my SGH-T959 using XDA Premium App
Click to expand...
Click to collapse
I lost the VPS server in the data center I was using. For best results you want the proxy to have a much better Internet connection than what is being proxied. For example - my connection in the data center was 100Mbs both up and down. When I proxied something that had the basic bandwidth of a dial-up connection in the neighborhood of 32-56kbps the speed boost was about 5 times faster. Doing the same thing for my 5Mbs cable connection was actually about twice as slow, meaning my page load times in seconds showed doubled my average total time to completely load a page and speedtest.net showed about half the bandwidth.
So this trick here is the proxy really needs a VERY, VERY good and fast Internet connection - like you get from a good hosting provider. However, if you just want to test connectivity you can try setting up your own proxy.
Here is what I was using http://khelekore.org/rabbit/ - This runs via Java, so it should work wherever you have Java available. I have successfully run in on FreeBSD, Linux, Solaris Unix, and Windows.
Will look into it but my home connection often sucks...i've also had no luck running and accessing a media server outside my home network as I think comcast blocjs that/tgis kind of tging being run on consumer plans
Sent from my SGH-T959 using XDA Premium App
jamesd86 said:
Will look into it but my home connection often sucks...i've also had no luck running and accessing a media server outside my home network as I think comcast blocjs that/tgis kind of tging being run on consumer plans
Sent from my SGH-T959 using XDA Premium App
Click to expand...
Click to collapse
Well this is a HTTP1.1 proxy, so you can pick any open port you want other than port 80 and it is HTTP traffic. So regardless of if they are using port blocking or protocol blocking, there really is not much way to keep you from using/running a proxy.
Any recommended other ports(like commonly open ones)
Sent from my SGH-T959 using XDA Premium App
Yeah, i'm deff going to need a lil assistance on setting this up...the faq on the site is not that great.
T313C0mun1s7 said:
Well this is a HTTP1.1 proxy, so you can pick any open port you want other than port 80 and it is HTTP traffic. So regardless of if they are using port blocking or protocol blocking, there really is not much way to keep you from using/running a proxy.
Click to expand...
Click to collapse
Certain port numbers are pre-assigned to particular applications by an international body called IANA, the Internet Assigned Numbers Authority.
8080 is assigned for HTTP-Alt, so it is the most commonly used and rarely blocked
1080 is assigned to socks (as in socks proxy) so the same applies
Just avoid a port number below 1024 so you don't conflict with a commonly assigned port and you should be fine.
I have an awesome idea...because I can't figure out how to set this ish up..set it up on your connection..i know it will be slow but just for proof of concept, send the details for access and i'll test it out..or you can edit your build.prop and test it. yep..unless you know an easier to setup one.
jamesd86 said:
I have an awesome idea...because I can't figure out how to set this ish up..set it up on your connection..i know it will be slow but just for proof of concept, send the details for access and i'll test it out..or you can edit your build.prop and test it. yep..unless you know an easier to setup one.
Click to expand...
Click to collapse
Or try this: http://aliveproxy.com/socks5-list/ or http://x-proxy.info/socks.php
These are pure HTTP proxys (like RabbIT4) and might work better: http://www.x-proxy.info/highanon.php
I tgink its a no go for now...nothing I put in the line will stay on reboot.
Sent from my SGH-T959 using XDA Premium App

[Q] Accessing local intranet

Running Vanilla AOSP Gingerbread 2.3.3, finally managed to get this thing to talk to the local network here at work (it's PEAP authenticated, TnT Lite won't see it).
Now I'm running into the issue of not being able to access local intranet sites with my browser. Instead if just takes me to google search.
Running Dolphin HD right now. Any ideas? I'd really like to use this tablet at work to access the local intranet. If it won't do it, that's going to be a problem.
I would download the program ipconfig from the market and make sure you are getting the correct ip information on your network. Getting the incorrect DNS server can cause this issue. You can also downlond ping from the market and try to ping the internal web address. Just a troubleshooting step that I would starti with.
I was able to ping it using the Terminal Emulator, so that is working at least.
Well...I am getting my Gtab deliverred via fedex tomorrow and will be able to test my local intranet sites with the same setup and hopefully be a little more helpful. I will keep you posted with what I find,
Ok, I was wrong, I can't ping. I was pinging a server that is exposed on the external internet (Oops). The internal-only servers are unreachable. The DNS servers, though, are correct.
This is interesting.
From home I can access my work email through Exchange for Android, no problems. However now that I'm online at work and on the internal network, it doesn't work. I suspect it's because it's on the internal intranet now instead of trying to route to it through the internet.
I suspect that, while Vanilla 2.3.3 AOSP supports PEAP, it doesn't really support PEAP.
A large number of corporate networks use a proxy server; check into that.
pearlyking said:
A large number of corporate networks use a proxy server; check into that.
Click to expand...
Click to collapse
This one doesn't, as far as I can tell.
My iPhone connects to it fine, other people are able to access it with iPads and Android phones.
I'd ask IT for help, but we're technically not supposed to be using it.
pearlyking said:
A large number of corporate networks use a proxy server; check into that.
Click to expand...
Click to collapse
+1
Had the same problem and it turned out to be the Proxy settings.
Got it working.
Now running VEGAn 5.11 and it connects just fine. Not having the issues with the email anymore, either. However some of the intranet sites only pull up if I know the IP directly, apparently the browser has a hard time with port redirection on the URL (it doesn't care for 'evolutionsc:8080' very much at all).
Now I just need to find a browser that can handle JIRA without formatting issues.
ubergeek4l said:
+1
Had the same problem and it turned out to be the Proxy settings.
Click to expand...
Click to collapse
I seem to be having the same problem but I honestly don't know how to update the proxy settings for my work network (which does use a proxy server). I'm using Vegan 511, anyone know how to specify a proxy server for the network connection to use? I can't find anything in the wireless&network settings area.

No VPN sorry no WiFi

Hi there,
I am building a home router on some decent pc hardware. I do this only to have a router with enough power to support decent encrypted vpn connections.
What I need to know is the following.
Is there a way to let an android device connect to WiFi -only- if the vpn is working?
This is tricky I guess. There has to be a WiFi connection otherwise the device cannot contact a vpn server.
But the point is that I don't want my users (wife and to lovely boys aging three and five) to connect to the Internet (via wifi) without any decent encryption.
I don't want to use a vpn service. I do this at home with the power router I build.
If I must pay for an app that does this than please suggest that. I love to pay for a good app that does what I want.
Any thoughts or suggestions?
Many thanks,
Sebastiaan.
You could use Tasker to kill their mobile data at home (depending on the phone, ROM, root, etc,) and then if the *only* Wi-Fi hotspots configured on the phones are the VPN-enabled ones, then you should be fine.
At my house, I use an Asus router with VPN Fusion. I set up my Surfshark once in the core, and my entire mesh has VPN. I just go to a page to tag each device, or set default to whatever VPN I want. Some of them go to another site I use in a different state, and some use Surfshark. If my mobile data was off, I'd be totally disconnected from the evils of the internet.
Also recommend using something like Blokada, and ensure you have always-on VPN set to either that, or another service. You can definitely set it so Android pulls that up on boot. That being said, in the case of rebooting the phone away from home, I'd imagine there's some period of time that the stuff on your device could hit the regular internet. That's where something like Blokada comes in handy. I use it to block as many google servers as I can, while still having some of those apps still work to some degree.
Depending how crazy you want to get with this, you could set a static DNS on the phone that only works when the VPN tunnel is established. There are many ways to skin this cat.
sebastiaankop said:
Hi there,
I am building a home router on some decent pc hardware. I do this only to have a router with enough power to support decent encrypted vpn connections.
What I need to know is the following.
Is there a way to let an android device connect to WiFi -only- if the vpn is working?
This is tricky I guess. There has to be a WiFi connection otherwise the device cannot contact a vpn server.
But the point is that I don't want my users (wife and to lovely boys aging three and five) to connect to the Internet (via wifi) without any decent encryption.
I don't want to use a vpn service. I do this at home with the power router I build.
If I must pay for an app that does this than please suggest that. I love to pay for a good app that does what I want.
Any thoughts or suggestions?
Many thanks,
Sebastiaan.
Click to expand...
Click to collapse
Why don't you just change the dns in the router
The Ultimate Guide to Changing Your DNS Server
There are many reasons you might want to use a third-party DNS server, from parental controls and security features to speed and reliability improvements. You can change the DNS server for your entire home network on your router, or set it individually on a PC, Mac, iPhone, iPad, Android device...
www.howtogeek.com

Categories

Resources