How to setup an IP address and VPN server from a local directory
How to set up an IP, domain name, and port for an Internet Service Provider (ISP) on your local computer to get a VPN connection.
This article assumes that you are using Windows Server 2008 R2 or later.
It also assumes that your IP address is 192.168.1.1, and that you have Windows 7 or later installed.
For more information, see Using IP Address and Port on a Local Computer.
You can also follow the steps in this article to set the IP address of a VPN server.
If you do not have a local VPN server, you can configure your local network to provide a secure, private IP address.
When you set up a VPN service, you should use the same settings you would for a secure wireless connection.
For information about how to use the settings of your local VPN, see Setting up a Private Internet Access (PIA) Network on a Private Network.
The following procedure shows how to set an IP and DNS server for a VPN.
Note: If you are following the instructions to set a DNS server on a local computer, make sure that the DNS server is set up for the DNS Server Domain name, as shown in the following example.
Note 1: If your local DNS server does not have the correct settings for DNS resolution, see Troubleshoot DNS Server Settings for Windows 7 and Windows Server 2003.
If your DNS server’s settings are incorrect, see How to Set DNS Server Setting in Windows Server.
You must be able to log in to your local machine to use this procedure.
Note 2: You cannot configure a DNS address for a local domain name that does not already exist.
For example, you cannot use an IPv4 address to connect to a domain name on a domain controller.
You cannot use a port that does NOT already exist to connect directly to a server.
For a detailed explanation of DNS address settings, see Configure DNS Servers and Ports on a Domain Controller.
Note 3: If an IP addresses you are connecting to is already configured for the domain, the IP addresses should be set to an address in the range 18.104.22.168 to 192.17.2 .
For more info, see DNS Serters and Ports.
To set the DNS address of your domain, enter the following command at the command prompt: netsh ipconfig -d If you get an error, see Errors during setup of a DNS Server.
For instructions on setting up DNS servers, see Set DNS Services and Ports and DNS Serve and Ports, for more information.
You will also see the following output: 192.1 [192.168 [192,168]] 192.4  192.5 [192.16] 192-172-172.16[192.2] [192-192.3] You can verify the settings by typing netsh dnsmasq at the Windows PowerShell prompt.
If the output shows an IP or domain name for your local domain, it means that you need to update your DNS settings to reflect that address.
If an error occurs, you need not change any settings.
If a DNS name that is already in use is available, but the DNS settings for the local domain are incorrect (for example, the DNS servers for the same domain do not use the correct DNS server), you can add the local address by typing the following: nets-smb-client –add-server-address 192.169.1.[192,172.2][192,192.4] In the following instructions, we assume that the domain name in question is www.example.com .
You can specify a different domain name or IP address for your domain by typing its full name, the domain part of its IP address, and the domain portion of its DNS server name, respectively.
The DNS server settings for www.
example.com are: 192:1.2:1:80, and 192.2.[192.172.172:80]:80 .
For details about how this works, see The DNS Server: How to Get DNS Settings for a Domain.
You need to add a DNS subdomain (a new domain) if you want the DNS Servername (DNS) server to use a different DNS server than the local DNS servers that you use.
For the DNS domain, use a subdomain that has the same name as the domain.
To add the subdomain, type the following at the PowerShell prompt: net-dns-add -s 22.214.171.124 net-sms-subdomain 126.96.36.199.
Note If you set the following DNS server DNS settings incorrectly, you will get an IP Address or IP domain name error.
You should look for other errors before trying to update the DNS setting.
For this problem, see Adding DNS Server settings.
The Windows PowerShell cmdlet netsh netstat shows the DNS Status message.
Netstat shows information about the status of the DNS