How to do it...

  1. Go to the WIN2016IIS server to access Nano Server 2016. We have to first log in to the WIN2016IIS server with any Windows 2016 Server or Windows 10 machine. We will use the WIN2016IIS server to remotely connect to Nano Server on 172.16.15.63.
  2. Let's first create the firewall rule to allow port 8081 on Nano Server. Execute RunAs /user:Administrator PowerShell_ISE.exe in the Run window on the WIN2016IIS server. It will ask you for the administrator password of WIN2016IIS. Type the administrator password and press Enter. You will get PowerShell to open with administrative rights.
  3. Next, we will write the PowerShell command Set-Item WSMan:localhostClientTrustedHosts -Value 172.16.15.63 -Concatenate and press the Enter button. You will get a popup for confirmation of the trusted host option. Click on Yes.
  4. Now we have to execute a PowerShell command to connect to Nano Server: Enter-PSSession –ComputerName "172.16.15.63" -Credential ~Administrator. You will get the popup for the Nano Server administrator password. Enter the password and press OK.
  5. Once Nano Server is connected to, we have to write a PowerShell command for the firewall: we will add a firewall rule to allow port 8081. Type the command New-NetFirewallRule -DisplayName "Allow Inbound Port 8081" -Direction Inbound –LocalPort 8081 -Protocol TCP -Action Allow in the PowerShell command prompt:
  1. You can see in the screenshot that the firewall Allow rule has been created. Now let's test nanosite.com:8081 to check whether it's working or not.

 

 

  1. Open Internet Explorer on the WIN2016IIS server, type the nanosite.com IP address, 172.16.15.63, along with the port number, 8081:
  1. As you can see, we have access nanosite.com using its IP address. If you configure the DNS, you can use the website domain name, nanosite.com.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.63.87