Related
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.
Hello guys,
Another good and useful application that I found and was like a Christmas present for me. I always needed proxy configuration to browse the internet and I was not able to do it.
A while ago I started using SPQRom which has proxy configuration only for the default Android browser.
Today I found a new application that offers proxy functionality for Android devices.
If anyone is interested just download the application below. Install it. Give to it root access. Connect to your WiFi network. Start the application. Enter proxy configuration. AND.... HAPPY BROWSING.
Transparent Proxy Application
I am currently using the beta version and is working excellent.
Working with : SPQRom 0.7
Thanks!
Many thanks using it for school network
Works with cyanogenmod
Doesnt work at some places because the DNS does not resolve IPs outside the network. Is there a method to route the DNS resolution through proxy?
It will be nice if it is implemented.
I am having the same DNS problem. Many people claimed it working. I can only make the browser work to access IP addresses. No idea how other apps like market can work.
thx man like like like
Now I use proxydroid instead of this. https://market.android.com/details?id=org.proxydroid&hl=en Works better for me.
Hello XDA devlopers,
I'm trying to connect to a WPA EAP network in my school, or a 802.1x EAP network as my mini pro regocnizes it.
when trying to connect it asks me for a password/password consisting of 8 letters/numbers.
i have tried using the same methood we do for our laptops we use at our school wich is a Unique SchoolID and a password. but that doesn't work since it want whatever i write to match the first line of password.
However, when just writing something random like 8 number 1 digits it goes on and asks for a connection type were i can choose from EAP, WPA and etc where i chose EAP because thats what im guessing our school uses (i'm no network technichan so i dont know anything about wireless networks at all, otherwise i probably wouldn't post here for help lol.)
But when i have choosed the connection type it tries to connect for like half a second and then stops and goes back to sleeping mode or searching for new potentional wi-fi/wireless networks.
Please note that my phone is a Sony Ericsson Xperia X10 Mini Pro device with default 2.1 sony ericsson stock rom and no root, aswell as the standard app to connect to wi-fi / wireless networks. (Settings > Wifi & Mobile networks > Wi-Fi)
If i have written this in the wrong thread or have written something not understandable please PM me and i will try to correct the text.
Regards,
Joel
Hawake said:
Hello XDA devlopers,
I'm trying to connect to a WPA EAP network in my school, or a 802.1x EAP network as my mini pro regocnizes it.
when trying to connect it asks me for a password/password consisting of 8 letters/numbers.
i have tried using the same methood we do for our laptops we use at our school wich is a Unique SchoolID and a password. but that doesn't work since it want whatever i write to match the first line of password.
However, when just writing something random like 8 number 1 digits it goes on and asks for a connection type were i can choose from EAP, WPA and etc where i chose EAP because thats what im guessing our school uses (i'm no network technichan so i dont know anything about wireless networks at all, otherwise i probably wouldn't post here for help lol.)
But when i have choosed the connection type it tries to connect for like half a second and then stops and goes back to sleeping mode or searching for new potentional wi-fi/wireless networks.
Please note that my phone is a Sony Ericsson Xperia X10 Mini Pro device with default 2.1 sony ericsson stock rom and no root, aswell as the standard app to connect to wi-fi / wireless networks. (Settings > Wifi & Mobile networks > Wi-Fi)
If i have written this in the wrong thread or have written something not understandable please PM me and i will try to correct the text.
Regards,
Joel
Click to expand...
Click to collapse
I would suggest looking up on your school's website to see if there are instructions for setting up the internet on your mobile device. I would assume they have instructions for different platforms.
I struggled to get it working at my school in which i had to get a certificate installed and blah blah blah. I can't remember if i got it working or not, it's been a while. I remember hitting a problem with WPA2 authentication on the mini pro. Hopefully you can get it working.
ctalcant said:
I would suggest looking up on your school's website to see if there are instructions for setting up the internet on your mobile device. I would assume they have instructions for different platforms.
I struggled to get it working at my school in which i had to get a certificate installed and blah blah blah. I can't remember if i got it working or not, it's been a while. I remember hitting a problem with WPA2 authentication on the mini pro. Hopefully you can get it working.
Click to expand...
Click to collapse
Thank you,ctalcant
But I've talked with our computer technichan team, but they said that they dont care and wont give support to anything else than our laptops, i also checked our schools website page and there were no instructions on how to connect, not even with our computers. only found a page telling us to visist the computer technichans if we experienced trouble.
So sadly, they wont support or help me with this. Any other suggestions?
Edit: i went there again and had a talk with a diffrent person, who seemed to have an android phone aswell, but he said that a certificate is needed to connect, atleast for the laptops in our school, but sadly he couldn't give it out because it was aginst their rules to do so. He said that he used a non-protected guest wi-fi that is aviable for our school, but to connect that you need a username and password aswell, and he couldn't give me one unless i was a guest at the school. And what iv'e heard about the guest one is that its suckey anyway so if there is any other solution i would be very happy.
Edit 2:
I have been using ubuntu on my school laptop before and got the wi-fi working without installing any certificate, but then i just selected to use EAP-PK2 something when editing settings on how to connect to the wifi with the ubuntu laptop and then filling the boxes with my schoolID login credentials and got it working.
And Android is based on linux so there should be some workaround for this?
Very Thankful for any answers about this.
any way to set up proxy setting for overall? my uni wifi is secured by securew2 which need to set proxy then able to surf websites. So far what i do is using opera which can set proxy for the browser only...
lh901121 said:
any way to set up proxy setting for overall? my uni wifi is secured by securew2 which need to set proxy then able to surf websites. So far what i do is using opera which can set proxy for the browser only...
Click to expand...
Click to collapse
I dont think it is possible for me to set up and proxy for the schools network.
They only have blocked one port and i think thats port 22 or something for security reasons, no other pages are blocked afaik.
Im starting to need the wi-fi access at school badly, i think i could pay whoever came up with a workaround or solution that works lol.
i'll post a fix tommorrow, i am currently trying it myself and it seems to work quite good!
please make a backup before you try.
it worked fine on mine though
802.1x working again!
hope it works for you!
you will loose draft N ability unfortunately
so only 54 mbit
slade87 said:
please make a backup before you try.
it worked fine on mine though
802.1x working again!
hope it works for you!
you will loose draft N ability unfortunately
so only 54 mbit
Click to expand...
Click to collapse
Thank you!
i will try this as soon as i root my phone again, because currently is unrooted and using default stock rom.
still waiting for the CM7 for mini pro to become 100% stable for everyday use. I use my phone alot and with a rebooting phone or non working phone is a bad idea lol
Also make sure to download telekom global root cert.
Its not installed by default
Its listed on the webpage
Pki.dfn.de
Its often used for 802 connections
Sent from my U20i using XDA Premium App
Hawake said:
Hello XDA devlopers,
I'm trying to connect to a WPA EAP network in my school, or a 802.1x EAP network as my mini pro regocnizes it.
when trying to connect it asks me for a password/password consisting of 8 letters/numbers.
i have tried using the same methood we do for our laptops we use at our school wich is a Unique SchoolID and a password. but that doesn't work since it want whatever i write to match the first line of password.
However, when just writing something random like 8 number 1 digits it goes on and asks for a connection type were i can choose from EAP, WPA and etc where i chose EAP because thats what im guessing our school uses (i'm no network technichan so i dont know anything about wireless networks at all, otherwise i probably wouldn't post here for help lol.)
But when i have choosed the connection type it tries to connect for like half a second and then stops and goes back to sleeping mode or searching for new potentional wi-fi/wireless networks.
Please note that my phone is a Sony Ericsson Xperia X10 Mini Pro device with default 2.1 sony ericsson stock rom and no root, aswell as the standard app to connect to wi-fi / wireless networks. (Settings > Wifi & Mobile networks > Wi-Fi)
If i have written this in the wrong thread or have written something not understandable please PM me and i will try to correct the text.
Regards,
Joel
Click to expand...
Click to collapse
Hi
I am able to connect to our corp network using 802.1x EAP with PEAP and MSCHAPv2 without using a cert. My phone is on fw MiniCM rc1.
Regards
Andrew
Even is an old thread I see no point in opening a new one.
So, I bought android (4.2.2) mini pc and created a pc out of it, but I am having trouble with connecting to students network cause it has 802.1x authentication, and you login with faculty username and password.
On windows we use Securew2 software and that solves problems, but when connecting on android I cant find any options to select EAP or TTLS authentication, anyone has a clue?
Lord99-hr said:
Even is an old thread I see no point in opening a new one.
So, I bought android (4.2.2) mini pc and created a pc out of it, but I am having trouble with connecting to students network cause it has 802.1x authentication, and you login with faculty username and password.
On windows we use Securew2 software and that solves problems, but when connecting on android I cant find any options to select EAP or TTLS authentication, anyone has a clue?
Click to expand...
Click to collapse
I run JB 4.1.2 on my x10mini and it just asks for username and password on 802.1x networks and then it connects. Not tested with a 'closed' network like a university setup, but with the public hotspots from my provider it just works.
SmG67 said:
I run JB 4.1.2 on my x10mini and it just asks for username and password on 802.1x networks and then it connects. Not tested with a 'closed' network like a university setup, but with the public hotspots from my provider it just works.
Click to expand...
Click to collapse
I'm sorry, forgot to mention that i have to connect via ethernet not wifi
Lord99-hr said:
I'm sorry, forgot to mention that i have to connect via ethernet not wifi
Click to expand...
Click to collapse
Ah, that's a different animal altogether. I hope for you there's someone with a good answer to that, or try the playstore to see if there's anything available that implements that functionality.
SmG67 said:
Ah, that's a different animal altogether. I hope for you there's someone with a good answer to that, or try the playstore to see if there's anything available that implements that functionality.
Click to expand...
Click to collapse
There is an app Securew2 for android, but i think it only simplyfies Wifi connection...either way I cant try it cause it doesnt support my university credentials yet..
I bought the Tab thinking I will be able to use it at work (NYC Public School Teacher)
My school uses the following proxy setting to connect to the internet;
Server = Proxy
Port = 8002
This is all that is given by my IT Department.
All Mac and PC Desktops use this exact settings and all works fine.
Everyone using Ipads use this setting and it works fine.
When I enter this setting, the browser gives me "authentication via proxy server was unsuccessful"
Am I missing something? Is this an android limitation?
(I tried some 3rd party proxy apps and failed)
Please Help, Thanks in advance
Please use the Q&A Forum for questions Thanks
Moving to Q&A
Still not working
I tried different roms, 3.1 3.2 and still cannot connect.
Can anyone help?
Thanks in advance.
Hi.
Sorry in advanced if there is a general android section this should be in, but only android general section I could see was about development and hacking...
Anyway,
Where I work, I need to set a proxy to be able to use the wifi there. This is fine, in the fact that I can use the proxy settings, and set it. But, then when I get home, the proxy will not work, so to use wifi at home, I have to disable the proxy settings...
So, going in and out of work becomes a cumbersome job... Would be great if there was something where I could define proxy settings per wifi connection.
Then, I found ProxyDroid. Appears to do what I want on paper. Installed it, tried it, and whenever I enter the proxy settings, in the browser, I just get "Cannot connect". So, I decided to set the proxy so there was none for my home wifi (but activated by ProxyDroid), and then it would be set as default to my work proxy. However, it still gave same error...
So, is there any other software or hack/development or anything that would allow me to do what I need?
Many thanks
David
You want to use this app, works a treat:
http://forum.xda-developers.com/showthread.php?t=1083284
Connect wireless and set proxy then as soon you connect to that network again the proxy enables itself.
Aha, knew there must be an app around somewhere to do that, but after searching around I couldn't find it... Then, it's sat there under my nose.
Have attached my work proxy to my work wifi, and seems to work well. Will just need to see if it works correctly when I'm at home on home wifi
Thanks a lot matey, great help