Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to share server's internet connection to VPN?


11 Apr 2012   #1

Windows 7 Ultimate 64-bit
 
 
How to share server's internet connection to VPN?

Hi,

I am using a VPN connection from my Android phone to my home PC by using the "default" Windows 7 (Ultimate x64) VPN feature. The connection works fine, but when I connect with my phone running Android 2.3.6 to this VPN, I loose the Internet connection on my phone and am only able to access the home LAN. Since the Android client doesn't have much settings to configure in this area, I figured the solution to my problem would be if the VPN server could share it's Internet connection to the VPN.

Please how do I set this up on the server?

Thanks


My System SpecsSystem Spec
.

11 Apr 2012   #2

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

android phone is wireless
home pc is wireless as well.

Why not simply buy a wireless router?
My System SpecsSystem Spec
11 Apr 2012   #3

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by varta View Post
Hi,

I am using a VPN connection from my Android phone to my home PC by using the "default" Windows 7 (Ultimate x64) VPN feature. The connection works fine, but when I connect with my phone running Android 2.3.6 to this VPN, I loose the Internet connection on my phone and am only able to access the home LAN. Since the Android client doesn't have much settings to configure in this area, I figured the solution to my problem would be if the VPN server could share it's Internet connection to the VPN.

Please how do I set this up on the server?

Thanks
why use VPN? Is the information so classified;-)
the VPN is now setup as a connection from phone to/from pc. No need te secure it!! Or is there any need?
My System SpecsSystem Spec
.


11 Apr 2012   #4

Windows 7 Ultimate 64-bit
 
 

Because it's hard to connect to home WiFi when You're several km away I use the VPN to connect to Remote Desktop or to access shared folders on my home PC WHEN I AM NOT AT HOME. That's why I use VPN.
My System SpecsSystem Spec
11 Apr 2012   #5

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

So your phone is several miles away from your home. You can connect to home over the vpn connection and use remote desktop.

Now I understand.

On Windows 7:
  • you have a tcp/ip address so network connection
  • Over that connection you made a vpn server
that's all fine.

What is the ip-address of android phone?
default gateway?
subnet mask?

I hope you can see more ip-addresses in configuration
My System SpecsSystem Spec
11 Apr 2012   #6

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

I don't know much about android. But when you configured vpn-client on android you answered some questions.
One of those is the ip address of vpn server.

But is there something like "use default gateway from vpn"? Don't check that!
My System SpecsSystem Spec
11 Apr 2012   #7

Windows 7 Ultimate 64-bit
 
 

Well, to your first question: On my phone, when connecting via 3G (cellular), I have a variable IP address. The internal address according to ifconfig should be 10.192.185.182, mask 255.255.255.0, default gateway SEEMS TO BE (I'm not really sure) 10.192.185.1

To the second question, there are very little options on Android VPN Client, these few options include only VPN Name, VPN Server address, checkbox to enable/disable PPTP encryption and "DNS search domains", which in my case is blank as I don't know what that is.. That's it. (It asks for credentials when connecting).
My System SpecsSystem Spec
11 Apr 2012   #8

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by varta View Post
Well, to your first question: On my phone, when connecting via 3G (cellular), I have a variable IP address. The internal address according to ifconfig should be 10.192.185.182, mask 255.255.255.0, default gateway SEEMS TO BE (I'm not really sure) 10.192.185.1

To the second question, there are very little options on Android VPN Client, these few options include only VPN Name, VPN Server address, checkbox to enable/disable PPTP encryption and "DNS search domains", which in my case is blank as I don't know what that is.. That's it. (It asks for credentials when connecting).
So you're connecting your phone using 3G to internet and has a 10.192.185.x address. default gateway is 10.192.185.y (I think .1 but not important).

Connect using vpn client and then start browser and browse to 173.194.67.147 (it's google) Does this work?
My System SpecsSystem Spec
11 Apr 2012   #9

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Is this the android app you are using?
Built-in Android VPN client

Android phones generally include a built-in VPN client, which you’ll find in the Settings | Wireless & networks menu. It’s labeled VPN settings: Set up and manage Virtual Private Networks (VPNs), as shown in Figure 1. The phone used for the screenshots is an HTC Thunderbolt running Android 2.2.1 (Froyo). However, Android has included VPN support since version 1.6 (Donut).
Figure 1

Android phones have a built-in VPN client

As you can see in Figure 2, you can select the type of VPN protocol to be used: PPTP, L2TP, L2TP/IPsec PSK, or L2TP/IPsec CRT. The last is most secure but requires a digital certificate. With L2TP/IPsec PSK, you can use a preshared key (a password). PPTP is the easiest type of VPN to set up, but it’s also the least secure.
If the VPN server requires certificates, you’ll need to download the proper certificates and store them on your phone. You can also install a certificate from your microSD card. You’ll need to set up the phone to use certificates. In the Settings menu, go to Security and check the box that says Use secure credentials.You should also set a password for the credential storage.
Figure 2

Select the VPN protocol(s) used by your VPN server

In any case, you’ll need some information to create the connection. The first step is to give your VPN connection a name to identify it (especially if you’ll be setting up more than one VPN connection — for example, one to connect to your home network and one to connect to your work network).
As you can see in Figure 3, you’ll need to set the VPN server by entering its public IP address. Encryption is enabled by default, and most VPN servers require it, so you’ll probably want to leave the box checked. The DNS search domainsfield is utilized if you need to use an internal DNS server (one that’s on your home or work network to resolve internal names) after you connect over the VPN.
Figure 3

Setting up a PPTP VPN requires completing only a few simple fields

Next, you’ll need to enter your user name and password — either domain credentials, if those are enabled on the VPN server, or credentials for a local account on the VPN server. Note that you might need to include the domain or VPN server name, separated by a backslash, as part of your user name (example: VPNServername\username).
Once you have all the information entered, just touch the Connect to networklink. If it’s configured correctly, you’ll get a message that your VPN is connected, as shown in Figure 4.
Figure 4

Your smartphone is now successfully connected to the VPN

An icon that looks like a key will appear in the notification area at the top of your Android phone’s screen, which you can also see in Figure 4, fourth icon from the left. If you slide the notification pane down, you’ll see the message that your VPN is connected, as shown in Figure 5.
My System SpecsSystem Spec
11 Apr 2012   #10

Windows 7 Ultimate 64-bit
 
 

Yes, kind of. The 10.192.185.xxx seems to be some sort of internal IP, the result to query "what is my ip?" Google responds: 85.237.224.61.

When I go to googles IP (173....) it works fine when I'm not connected to VPN, but when I connect to the VPN it doesn't work.
That's why I need to pull the internet connection through VPN.
My System SpecsSystem Spec
Reply

 How to share server's internet connection to VPN?




Thread Tools



Similar help and support threads for2: How to share server's internet connection to VPN?
Thread Forum
Share internet connection from internet dongles Network & Sharing
Solved is it possible to share internet connection with a switch Network & Sharing
How to share internet connection from a 3G dongle? Network & Sharing
Way to share my internet connection? Network & Sharing
Cannot share internet connection Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:48 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33