After a lot of digging the clue came from Wi-Fi Direct.
The concept explained
Wi-Fi direct is a wireless standard that allows creation of a
connection between any two devices without a wireless access point (or
going through a router).
Wi-Fi direct uses a Wi-Fi protected setup (WPS) protocol when connecting two devices.
Additional protocols have been created to make Wi-Fi direct more useful such as Universal Plug and Play, Zero Configuration and Device Profile for Web services.
More importantly when a
p2p connection is formed over Wi-Fi, the device continues to maintain the uplink connection over any other network for internet connectivity on this device.
Wi-Fi direct uses a concept called software access points (Soft AP) which makes it possible for a device to act as both the access point that the Wi-Fi comes from and the
client that uses it".
The Soft AP provides a version of Wi-Fi protected Setup with its push
button or PIN based setup.
WiFi direct and IP address
In Android, the
WiFiP2pMangerclass (provides the API for managing Wi-Fi peer-to-peer connectivity) assigns IP address to every Group Owner which is
192.168.49.1, and uses the
192.168.49.0/24 pool in DHCP to assign addresses to devices that join the Group Owner.
Wi-Fi direct is a single hop radio communication, however supports
multi-hop radio communications, with intermediate Wi-Fi nodes as
- There is a little backdraw with this setup, as traffic wont be routed over multiple hops as they do have the same IP space. Now here comes the implementation of a tunneling proxy
that allows passing requests and responses to the connected clients (which would foward the connection to connected clients)
Given my limited programming skills, this research has enlightened me, and allowed me to visualise how these great concepts have been incorporated into one of the the excellent application I have been looking for,
to ease the burden of trying to tether a "wi-fi connection over wi-fi".
To cut the long story short, I ended up getting an application using a similar concept NetShare tethering (no root) application as a solution to the problem addresed.
- Apart from other "extra" features it offers, I was only interesting in this WLAN direct via proxy concept.
Now this application uses a vpn proxy to route traffic from device
connected to Wi-Fi network to another client via a p2p connectivity.
Essentially, it uses a HTTP proxy to route traffic to the client and configuring the connection is fairly easy:
Go to connection settings of any device e.g PC, Iphone etc (but in this case used a Symbian device)
Add the wireless acess point if not done already, and input the Wi-Fi direct Group password.
Under advanced settings change proxy settings:
(remember to allow this port on firewall settings for other devices)
Remarks: While I couldn't get into whole detail of how Wi-Fi profile share in Samsung devices works, this research has helped me see a similar concept impemented in other ways to achieve the ultimate goal (Sharing a Wi-Fi connection over Wi-Fi or at least over Wi-Fi Direct)
Disclaimer: I am not affiliated with this application in any way, but it was an answer to my question hence why I explained my research.
- Share internet by using WiFi-direct Android
- How Wi-Fi Direct Works As A Gateway To The Internet Of Things
- Assigning Wifi Direct Group Owner's IP address in Android
- How to get each device's IP address in Wi-Fi Direct scenario?
- Wi-Fi Direct
- Multi-hop routing
- Proxy Server