Windows 2012 IIS Configuration Questions

Get help with troubleshooting issues
Post Reply
dcipher
Posts: 202
Joined: Fri Jul 25, 2014 6:22 pm

Windows 2012 IIS Configuration Questions

Post by dcipher » Thu Oct 08, 2015 3:24 am

Hi

I have configured TSPlus to use IIS as outlined in the documentation. I would like to know why IIS must be configured to listen on port 81. This means that something else is listening on port 80. Can you tell me what is listening on port 80 if the TSPlus webserver is no longer running. Secondly the AdminTool still shows that the web server is listening on ports 80 and 443. What web server is this referring to since IIS is not listening on port 80 and the TSPlus web servers are not supposed to be running?

Thanks,
Simon
Attachments
AdminTool.jpg

juwagn
Site Admin
Posts: 239
Joined: Wed Oct 15, 2014 8:25 pm

Re: Windows 2012 IIS Configuration Questions

Post by juwagn » Thu Oct 08, 2015 1:12 pm

Hello,

if your server is behind NAT/Router etc, so that you have to forward port 80/443 from outside then you can setup any port where html_gateway listens. Also example
1. Router listens on port 80/443
2. Forward traffic to lanip:801/4433 where html5 gateway listens
3. Html5 gateway forwards than to local:81 where IIS listens.
There is no reason why 81, just because it is the next port after 80. However it is hardcoded in GUI(not by me) to be used by default for third webservers, but the core allows to use any port. Can be as example adjusted manually in webserver.but (but you have to set write lock on this file because gets overwritten by GUI after each restart)

If your question is, why IIS has to listen on port 81 and not on 80, answer is, you can setup html5 gui to listen on any other port xyz and let IIS to listen on port 80/443, adjust webserver.bat (with set write lock on this file) to forward traffic to port 80 where IIS listens.
As example
html5 gui port 800/4433
IIS port 80/443
and webserver.bat change to forward to 443/80
But in such case html5 rdp will not be available on IIS ports 80/443 when accessed directly. IIS just has no idea what to do with this traffic.
(the reverse proxy of IIS/Apache can be setup too and will work, but than only as XHR (no Websockets) with degraded speed)
Therefore to not reinvent the wheel with different configurations by default it is easier to setup IIS on port 81 and html5 gateway on port 80/443 where both things work, IIS handles http requests and html5 the rest.

Sincerely yours, JW.
TSplus HTML5 and Java web engineer

dcipher
Posts: 202
Joined: Fri Jul 25, 2014 6:22 pm

Re: Windows 2012 IIS Configuration Questions

Post by dcipher » Thu Oct 08, 2015 2:14 pm

Hi

I assume that when you say "Router" listens on 80/443 that you are referring to some TSPlus routing application. If so is this the same application that listens when using the built-in TSPlus web server? The reason I ask is I reported that we were having problems with the Admin Tool reporting that the web server was not listening on ports 80/443 and as a result clients could not connect use the web browser. So I thought I would try IIS to avoid having the TSPlus web server intermittently stop listening on the ports. However, if the "Router" you referred to in point 1. is that same application that listens when the TSPlus web server is used then I have not mitigated this problem as I had hoped. That is why I wanted more detailed information about what was happening behind the scenes.

I think it would be helpful if there was an additional help document with more technical details about how things works and how to use the various configuration settings I am finding in various places that are not part of the AdminTool.

Thanks,
Simon

User avatar
admin
Site Admin
Posts: 1649
Joined: Wed Sep 05, 2012 6:38 am

Re: Windows 2012 IIS Configuration Questions

Post by admin » Fri Oct 09, 2015 5:48 pm

Hello,

TSplus will use 80/443 as default for its web services, this is also why IIS should be configured with 81. However you can do the opposite : configure TSplus web services on 81/4443 and IIS on 80/443 : tsplus.net/support/kb/faq.php?id=6

One of the many issues encountered when setting up the web access for TSplus is that many application nowadays are also using port 80/443 which conflicts our web service. Two common example are skype and teamviewer, these two applications can be configured (in advanced network options...) to not use these ports.

One other common way to troubleshoot this is to :

1- Open a cmd prompt, and type in the "netstat -nao |more" command. This will display a list of services listening to specific ports.
2- Locate the line in which the 443 port is mentionned, at the end of this line you will see the PID (process id) of the process launched.
3- Open a task manager, go the process tab, sort by PID : you will find the process responsible for conflicting your web services !
Olivier
TSplus support team administrator
Image

dcipher
Posts: 202
Joined: Fri Jul 25, 2014 6:22 pm

Re: Windows 2012 IIS Configuration Questions

Post by dcipher » Fri Oct 09, 2015 6:50 pm

on port 80 & 443 the process is Java(TM) Platform SE binary(32bit) which I assume is your port unifier.

Simon

Samy
Posts: 5
Joined: Tue Nov 03, 2015 12:27 am

Re: Windows 2012 IIS Configuration Questions

Post by Samy » Mon Nov 30, 2015 11:39 am

TSplus version: 8.40.11.26
Windows 2012 R2 DataCentre
IIS is NOT installed.

The built-in HTTP and HTTPS server is not listening on port 80 and 443.
The HTML5 pages are installed on this system.
JAVA is installed on this server.

Restarted the Web servers few times. No luck.
Performed netstat -o and found no other process including TSPlus is using port 80 or 443
Downloaded and Installed compatibilityUpdate. Reinstalled TSPlus couple of times. No luck.
Manually ran StartHTTP.exe from c:\program files(x86)\Tsplus\Userdesktop\files to see if it would make any difference. No luck.

Kindly advise how to resolve.

Regards,
Sam

User avatar
admin
Site Admin
Posts: 1649
Joined: Wed Sep 05, 2012 6:38 am

Re: Windows 2012 IIS Configuration Questions

Post by admin » Mon Nov 30, 2015 2:07 pm

Hello,

We have the solution for you.

This issue is related to Java 32 bits limitations.
The solution, tested successfully this morning, is easy to implement and it is the following :

1) Remove tour current installed Java 32 bits version
2) After uninstall, remove the reminding C:\Program Files (x86)\Java folder
3) Download from Oracle site the Java 64 bits off line installation package
4) Install it
5) Restart the TSplus web servers
Olivier
TSplus support team administrator
Image

Samy
Posts: 5
Joined: Tue Nov 03, 2015 12:27 am

Re: Windows 2012 IIS Configuration Questions

Post by Samy » Wed Dec 02, 2015 10:36 pm

I have followed the steps as advised in your post.

Uninstalled Java from the server. Downloaded offline version of Java 8 Update 66(64-bit) version from Oracle site and performed install.

Restarted the server. No Luck.
Reinstalled TSPlus latest version. No Luck.

Any other suggestions.

User avatar
admin
Site Admin
Posts: 1649
Joined: Wed Sep 05, 2012 6:38 am

Re: Windows 2012 IIS Configuration Questions

Post by admin » Thu Dec 03, 2015 4:24 pm

Hello,

If your webserver does not start even after Java reinstallation then this means that either a security software such an antivirus or firewall is preventing the execution of TSplus services or another application is conflicting TSplus web server port.
Olivier
TSplus support team administrator
Image

Post Reply