[Q]How is the mechanism of a Wifi Hotspot App? - Android Q&A, Help & Troubleshooting

- Hi, I want to start an hotspot app just like the default hotspot tethering network in android device and make some improvement for that. But at first, I have no knowledge about it at all.
- So does anyone have kinda document that related to the android hotspot. How is the mechanism to send, receive packet ??? What is it all about ??? Please recommend for me.
:highfive::highfive:

You need to :
1. turn your wireless interface (wlan0) into AP mode (Access point )
2. Configure security type /password for the connection (look for iwconfig ..)
3. turn on dhcp on the wlan0 interface , set the router option and DNS option to the IP of wlan0
4. Enable masqurading(NAT) on your mobile connection such that traffic coming from your tethered device will be natted (look for iptables ).
This setup needs root .

Related

Internet sharing from Wifi to Bluetooth with a Socks Proxy

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

[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

Can I limit wi-fi speed for computers/mobile connected to my wireless network ?

Can I somehow limit the speed to other devices connected to my Wi-Fi router via some software ? I've read that I need to do something with the Quality of Service setting on the router but I don't have that option. The router model is TP-LINK WR340G. The same question goes for the android platform, is there some app for this ? I've been told that the linux kernel has something like traffic shaping but I dont know how to do that
DavidMKD said:
Can I somehow limit the speed to other devices connected to my Wi-Fi router via some software ? I've read that I need to do something with the Quality of Service setting on the router but I don't have that option. The router model is TP-LINK WR340G. The same question goes for the android platform, is there some app for this ? I've been told that the linux kernel has something like traffic shaping but I dont know how to do that
Click to expand...
Click to collapse
I think that it's impossible to do that in your router , but you have these alternatives :
1. Through a Unix PC:
- Connect your unix PC to your router through a wired connection(ethernet).
- change your wifi password of the router
- then turn your Unix PC into an access point with hostapd , you can configure the password and the SSID
-configure the pc wifi interface with a local IP such as 192.168.0.1
-turn dhcpd in your Unix PC (using your wifi interface ) and configure the range 192.168.0.1-192.168.0.20
- Use QOS shaping in your wifi interface to set the desired speed ( use TBF )
2. Using an APP:
if the devices connected to the router are android devices , recommend that they use the following APP to set their speed when connecting to your router .
http://forum.xda-developers.com/android/apps-games/app-bandwidth-manager-android-t2972889

How to set static IP without specifying gateway

I'm trying to set up a Wifi with a static IP but NO gateway or DNS but until I enter a gateway and DNS the save button remains greyed out.
From a networking perspective, you should be able to have a Wifi connection without a gateway (This is true for all devices with multiple network connections) so that it uses an alternative connection (Mobile data in this case) but for some reason the Android devs seem to think otherwise.
The network I'm connecting to has no internet connection (Used for local connectivity only) so I need the phone to still use my mobile connection whilst connected. As Android turns off mobile data when connected to Wifi I was hoping I could leave the gateway blank to force it to use it's mobile connection when connected to this network but I can't
How can I either have mobile data on for just 1 SSID or save a connection with no gateway so it does use mobile (I tried 0.0.0.0 to no avail)?
Phone is a rooted HTC One M8 running Android 4.4.4

Connecting to a wifi that uses proxy

I'm connecting to a new network which goes by cable, so in Ubuntu I used command:
sudo create_ap wlan0 eth0 wifi_name wifi_password
to set an wifi accesspoint that can be used by my phone.
The problem is that the connection uses a proxy and that the phone does not give me the option to configure it when connecting. That is, I have to introduce the password, connect and then I can change the proxy settings.
However, I cannot save the changes permanently.
How can I solve this?

Categories

Resources