doxsi
doxsi

Reputation: 1024

Allow network connection to a specifc app

I am developing a application for mobile (iPhone and Android) maps based for a company. The company has deployed a wireless network to allow, by subscribing, internet access.

The idea of the mobile app is to give internet access only to that specific app to any ones that have it. In other words, company wants to allow to application to connect to this network.

My question is: is it possible to give access only to a specific application and what would be the most appropriate way? Is the app that "recognize" that network or network is in charge of give access to that specific app? Any suggestion is very appreciated.

Upvotes: 0

Views: 667

Answers (2)

Mels
Mels

Reputation: 476

Generally speaking, a regular WiFi network won't have any facilities to allow a single application to access it. The mobile device OS associates itself with the WiFi network, and it will allow all applications to access it.

You could, however, use a proxy server that requires authentication. You could then build the authentication keys (for example, a client certificate) into the application such that only the application will be able to communicate through the proxy.

Upvotes: 2

Neji
Neji

Reputation: 6839

If you want to provide only app to connect to any network then you need to put some rules in IPTABLES in linux core (this needs your application to have root access) just like the firewall applications for android that monitors UIDs of applications accessing network

But you can do it the other way, implement some server calls that the particular network of the company will only be accessed through that particular app, Use some validation in http requests such as maintain a unique ID to differentiate your app/user that you can create during registration and during interacting with the network use the key for validation.

Upvotes: 2

Related Questions