[分享] Windows 7 PPTP VPN Client Setup

2015年11月7日星期六 | | 0 评论 |

Windows 7 PPTP VPN Client Setup

Let's talk about Windows 7 PPTP VPN client setup in this article, so that you can connect to your home or company's PPTP VPN server later. In addition, you can also use this VPN client to connect to VPN server that supports L2TP/IPSec, SSTP or IKEv2 VPN protocol.

Without wasting more time, let's start to configure Windows 7 PPTP VPN client:

1) Go to Start and click on Control Panel.

2) Proceed to click View network status and tasks in Control Panelwindow.

how to view network status and tasks in Windows 7

3) Network and Sharing Center window will appear, proceed to click on Set up a new connection or network.

set up VPN client in Windows 7

4) Set up a Connection or Network window appears. Choose Connect to a workplace option and click Next.

connect to a workplace in windows 7 win7

5) Proceed to click on Use my Internet connection (VPN) (your computer should have connected to network).

use VPN connection in Windows 7

6) Let's type the IP address or host name of the VPN server computerthat you plans to connect to and also name the connection. Most of the time the IP address is the public WAN IP of your home network's DSL/cable Internet connection if the VPN server is located behind your home router. Click Next.

Note: Check this what is my WAN IP article if not too sure about WAN IP of your home network's Internet connection.

Note: Tick that Don't connect now; just set it up so I can connect lateroption if you are not ready to establish the VPN connection yet. You can also tick other options if it's applicable.

Windows 7 VPN server IP address

7) Type your VPN user name and password, after that click Create.

Note: For safety concern, don't tick Remember this password option.

username password for PPTP VPN

8) Ok! Now the VPN connection is ready to use, just click Connect now to establish the VPN connection if you are ready. If not, click Close and connect it later.

Windows 7 - connect PPTP VPN

9) If you click on network icon (right hand corner of taskbar area), you will notice that new VPN connection item is created and you can clickConnect to establish VPN connection.

Note: You can also right click the VPN connection and click on Propertiesin order to configure this connection in details as needed.

VPN client detailed options

Note: If you open VPN connection properties, you can make further VPN configuration. The security tab also shows you the supported VPN types (Automatic is default setting)

Windows 7 - type of supported VPN

Related Articles:

Virtual Private Network (VPN) Introduction
Simple PPTP VPN Server Setup in Windows XP
Configuring PPTP VPN Client in Windows XP
PPTP VPN Client Setup in Windows Vista

Return to top of "Windows 7 PPTP VPN Client Setup"!!


from: http://www.home-network-help.com/windows-7-pptp-vpn.html

tec. 美国VPS  无限分享 西部数码分销商 便宜VPS   捷飞网络科技论坛  捷飞网络  云主机,VPS 西部数码代理

分享PHP中获取当前页面的URL相关浅析

2015年11月3日星期二 | | 0 评论 |

javascript实现:

top.location.href   顶级窗口的地址
this.location.href 当前窗口的地址

PHP实现:

<?php
#测试网址:     http://localhost/blog/testurl.php?id=5

//获取域名或主机地址 
echo $_SERVER['HTTP_HOST']."<br>"; #localhost

//获取网页地址 
echo $_SERVER['PHP_SELF']."<br>"; #/blog/testurl.php

//获取网址参数 
echo $_SERVER["QUERY_STRING"]."<br>"; #id=5

//获取用户代理 
echo $_SERVER['HTTP_REFERER']."<br>"; 

//获取完整的url
echo 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
echo 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'];
#http://localhost/blog/testurl.php?id=5

//包含端口号的完整url
echo 'http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; 
#http://localhost:80/blog/testurl.php?id=5

//只取路径
$url='http://'.$_SERVER['SERVER_NAME'].$_SERVER["REQUEST_URI"]; 
echo dirname($url);
#http://localhost/blog
?>

参考: http://www.cnblogs.com/A-Song/archive/2011/12/14/2288215.html


所有文章收集于网络,如果有牵扯到版权问题请与本站站长联系。谢谢合作![email protected]