Hi ( sorry I cannot read your name... ),

If I understand well, you have your VPN server ( that you own? You set it 
up? ) and you want to allow your app to connect to that VPN. Right?

1st. Did you validate that your VPN server was working? Did you actually 
connect successfully from any computer?
2nd. You want to authenticate on your VPN. What is the authentication that 
you enabled on your VPN? Typically it is a shared secret and a 
user/password ( depends though ). Usually you need to create an 
authentication object and pass your parameters

Some resources that might be interesting to look at:
- 
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.3.7_r1/com/android/settings/vpn/AuthenticationActor.java#AuthenticationActor
- 
http://stackoverflow.com/questions/9690666/android-vpn-authentication-and-encryption

Regards,
Nicolas.

On Wednesday, June 6, 2012 2:14:55 AM UTC+7, Евгений Корнейчук wrote:
>
> This is my letter of hope. I'm using android 4.* to create a l2tp 
> connection to the server. The problem is in authorization. I have a server 
> key , user login and password. I search any solution along the internet, 
> not for android only but for java at all, and didnt find any code sample 
> for start. I have no idea how I can authorize on server. ToyVpn in android 
> samples didnt help, its just sample of regular connection(without any 
> authorization). Please, somebody, help! I'll be grateful for for any useful 
> information in this question.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to