Internet sharing from Wifi to Bluetooth with a Socks Proxy - Windows Mobile Apps and Games

I've created my first Windows Mobile application mainly as a learning experience. I thought might as well share it.
I have to use Motorola MC5574 and a laptop without wifi card for work and got tied of sharing slow gprs connection to laptop while in the field.
Internet Sharing on MC55 won't allow me to share wifi over bluetooth or usb. Tried ICS Control but did not work for me.
So this application is created and finished after days of research on internet instead of adding on a wifi card to the laptop.
This program requires Microsoft .Net Compact 3.5.
I do not know if it will work on any other device.
I am not responsible if you use this application and crash your device or whatever else happens.
Main proxy function is based on open source C# proxy server code. Basic DNS proxy and ping functions are added and compiled with SharpDevelop. I could not add soft input panel in SharpDevelop so there is no keyboard icon available.
To use:
Press IP button to list ip addresses.
Select server ip address by using < or > buttons.
Uncheck DNS proxy if used together with built-in Internet Sharing.
Leave it checked if used together with WM6BTPAN.exe and manually put in DNS and Gateway address (server ip address) on laptop bluetooth lan driver.
Press Start.
Don't forget to change socks proxy option in the browser on laptop.
To use with usb connection: On mobile, under ActiveSync>Connections, uncheck "Synchronize all PCs..." and reboot before the usb cable is connected to laptop. If ActiveSync on laptop connects proxy does not work.
In my experience Firefox works better with this app then Internet Explorer for some reason.
Connection limit (on the right of port number) is to prevent process overload by client connections especially on web pages with a lot of elements. It may be better to set the limit higher on the program and change network.http.max-connections value on Firefox.
01/24/2011
New Version: 1.1.
Added KB button for keyboard.
Added DHCP service to make connections easier.
Added DNS resolve function for sharing ActiveSync connection.
Example: if the Internet connection through ActiveSync is shared as [Internet > Router > LAN > PC > ActiveSync > USB > WM phone > Proxy > Wifi Ad-Hoc > another WM phone]:
On PC, in ActiveSync connection settings, check “allow wireless connection” before connecting USB cable.
On the device running proxy: check browser to make sure it is connected to Internet. Create an Ad-Hoc connection with static address (example 192.168.15.1, subnet 255.255.255.0, no gateway address). Wait until connected with client device (which should be set to dynamic IP address). They should connect even though the client will have wrong IP. If they do not connect at this stage don’t bother with next steps.
Once connected start proxy or click on IP button if already started. The Wifi IP address 192.168.15.1 should show up. Set that as proxy server address, check DHCP, and check DNS with 127.0.0.1 as DNS server address. Click Start.
If the Wifi Ad-hoc connection still works the DHCP client count should change in a couple of minutes. If not make sure to keep the devices a few feet apart and also try turning Wifi off and on from the client phone to force DHCP discover again.
On the client phone: Settings > Wifi > configure network adaptors to “connect to work”. In Settings > Connections > Work Network > setup proxy server > enter proxy server as “socks=192.168.15.1” (example proxy server address) > advanced > HTTP > change port to proxy port (default 9876) so that the screen shows HTTP as “socks=192.168.15.1:9876. Socks port setting does not matter, as Mobile IE seems to connect using HTTP setting.
Note:
Tested between Motorola MC5574 and a Samsung Omnia i910. Wifi Ad-hoc connection on Omnia side is unstable and cannot be used as host.
Therefore Internet>MC55>Wifi>Omnia works but Internet>Omnia>Wifi>MC55 does not work reliably.

Nice. Have you seen the SOCKS proxy app from pchasco? http://forum.xda-developers.com/showthread.php?t=414389

Related

Activesync Won't Let Internet Explorer Find Server.

Has anyone had this experience before? Everything works fine until I connect my PPC in the cradle and then I try open IE. My AOL connection works fine and I can get to the internet that way but IE keeps saying it
can not find the server.
are you using 2 PCs that one of them is behind a proxy (ex: at work) ?
in that case, the XDA will automatically configure itself with the proxy setting especially if it has the DNS function. When u r on the other PC (ex: at home), the XDA will try to decode the server name into IP using the proxy which can't be found.
if it's not the case, check your "work" connection at the network settings and make sure it doesn't have any proxy or DNS settings.

Openvpn connected but not tunneling over VPN

Hi,
I followed several guides on connecting my Galaxy Ace with an Openvpn Server.
I finally managed to connect to a Openvpn server using Certificates with the latest Cyanogen Mod for the Galaxy Ace.
For the Connection I used OpenVPN Settings App from the Market.
The thing is that the connection is established and I see in the config, that VPN is connected. It displays the message:" Connected to 134.x.x.x as 192.168.200.100"
But unfortunately nothing is tunneled over this VPN connection. If I for example check my external IP on the Galaxy device, it still shows me my G3 Provider IP. But I expect to see the IP of my Home Internet Provider. Furthermore no connections to devices on the local Network of the VPN Server can be made.
That means, that despite the VPN Dialog showing me that I am connected to the Open VPN server, no connection is tunneled over that device.
The Guides I used to setup the VPN Connection are from here:
freetz.org/wiki/packages/openvpn
and
riseup.net/en/openvpn-android
If I connect with the same settings from an windows PC to the Server, The connection is established and tunneling just fine.
Anyone knows what I am doing wrong?

[Q] WiFi connection w/o DHCP service

Occasionally I want to connect to a WiFi network that doesn't have a decent DHCP service. I can connect to the AP but I do not get an IP number, DNS server and so on.
Is there a way (an app, maybe) that allows manual configuration of a WiFI connection?
I'm running UrukDroid on Archos 101IT.
Under advanced wifi settings you can manually configure your connection. No need for a special app.
divx118

[Q] Android unable to connect to my Wi-Fi network - Windows can

I am in university halls of residence. I have setup a Wi-Fi hotspot in my room using a generic router by connecting from the ethernet out port in the wall to a ethernet LAN port and disabling DHCP on the router.
This works perfectly for my Windows 7 laptop. It connects to the router and then to the uni internet without issues. However, although my Samsung Galaxy S3 (International i9300) can detect the network, if I just try to connect to the network as I would any other it gets stuck when obtaining an IP address. After messing around with it for a bit i found that I could get the phone to connect by going into the advanced settings and choosing "static" instead of "DCHP". I don't know what I was really meant to enter for IP Address, gateway, subnet, DNS 1 and DNS 2.
The router has the IP of 192.168.1.1 when i connect it directly to my laptop via ethernet so I tried that as the gateway, I set the IP address to something like 192.168.1.14 (So that it was similar but different), I set the subnet to 255.255.255.0 and the DNS servers I used google's (8.8.8.8 and 8.8.4.4). This got me connected to the router but there doesn't appear to be any internet connection.
I therefore thought that I had entered wrong information for the network (I was only guessing after all). Therefore I went into ipconfig in Windows and copied the default gateway and DNS servers and used a similar IP address (Last number different). I had the same issue.
Does anyone have any suggestions?
I only want Wi-Fi in my room for mobile.

Sharing android mobile 3g/4g hotspot to wifi router via pc computer (xp vista win7)!!

Sharing 3G/4G Internet connection on Desktop/PC/NOTEBOOK/LAPTOP connected with Android mobile phone via WiFi HOTSPOT or USB LAN or 3G/4G USB modem datacard , and then use the wireless Wifi router as a WiFi access point for the other devices.
1) Setting up the router
Router WAN will not be connected to any modem, *** NOTHING ON ROUTER WAN PORT (NO INTERNET VIA PPPoE DSL , STATIC OR DYNAMIC IPs) but it will made to act as Access Point for "sharing" the shared internet connection on Desktop/PC/NOTEBOOK/LAPTOP.
First, one needs to access the wireless Wifi router's configuration settings, usually one need to connect the Wifi router, and then access its setup page either over WiFi network, or by plugging it to desktop or laptop in 1 of its 4 LAN ports. setup page is accessible by entering the router's IP address 192.168.1.1 on IE address bar or some other browser like Firefox etc. however consider your router's manual to see how to get to the settings. Ideally, resetting the wireless Wifi router and then following its setup guide would best way start off.
Once on Wireless Wifi router's settings do the following:
a) Enable the Wifi connection. It should be enabled by default, but some routers require you to manually enable it.
b) Secure your network. Under security options, there should be a way for you to specify a password for your new wireless network. Here you will have multiple options, probably WEP, WPA and WPA2. Set up either WEP or WPA/WPA2 security. WPA2 would be best if your router supports it. Consider having a look at the router's manual for that.
c) Disable DHCP. Look for a setting that says something about automatic addressing (or "DHCP"). Which is enabled by default, disable it – ****this is most important!
d) Connect the router to Computer Desktop/PC/NOTEBOOK/LAPTOP. The LAN port of Desktop should be connected to 1 out of router's 4 LAN ports via RJ45 cable. Wireless Wifi router will have one WAN internet Modem port at the back designated only for modems, as mentioned above do not use connect anything to this port so-called WAN port.
Once above steps are done Wireless Wifi router is all set.
2) Enable connection sharing
• Now if you have 3G/4G dongle data card then insert it into USB port of Computer Desktop/PC/NOTEBOOK/LAPTOP
Go to "Network Connections"; locate your “3G modem” connection
Right click and select "Properties"
Select "Advanced"
Enable "Internet Connection Sharing"
One should be able to share it over Computer Desktop/PC/NOTEBOOK/LAPTOP LAN interface connected to wireless router or share it over Wifi card connected to Wireless router.
• If you have 3G/4G Internet connection on Android mobile phone connected USB port of Computer Desktop/PC/NOTEBOOK/LAPTOP
Go to "Network Connections"; locate "Remote NDIS based Internet Sharing Device" connection
Right click and select "Properties"
Select "Advanced"
Enable "Internet Connection Sharing"
One should be able to share it over Computer Desktop/PC/NOTEBOOK/LAPTOP LAN interface connected to wireless router or share it over Wifi card connected to Wireless router.
• If you have 3G/4G Internet connection on Android mobile phone connected via Android mobile HOTSPOT to Computer Desktop/PC/NOTEBOOK/LAPTOP
Go to "Network Connections", locate Wifi adapter e.g. "Broadcom 802.11g Network Adapter" connection connected to Android mobile HOTSPOT
Right click and select "Properties"
Select "Advanced"
Enable "Internet Connection Sharing"
One should be able to shared it over Computer Desktop/PC/NOTEBOOK/LAPTOP LAN interface connected to wireless router or if you two wifi wireless adapter card then share it over 2nd Wifi card connected to Wireless router.
Once done you are all set to rock the network by connecting other Desktops/PCs/NOTEBOOKs/LAPTOPs/Android/windows/Apple/blackberry’s phones and other devices to Wifi wireless router Access point that you had set up. Your devices should acquire an IP address and be able to connect to the internet with any issues. Windows will lease out more than just one address when using windows ICS!

Categories

Resources