HTTP.sys Does not work from the global network

<< Click to Display Table of Contents >>

Navigation:  Forum >

HTTP.sys Does not work from the global network

Forum link

 

Pages: 1 2 3

 


 

08-18-2021, 06:03 AM:

 

When testing the demo version of the use HTTP.sys the following is observed:

 

http://localhost/MyBase1/ - succes

 

http://192.168.0.103/MyBase1/ - successfully

 

http://46.191.248.132/MyBase1/ -  I can't open this page

 

* Make sure that the web address http://46.191.248.132 correct

 

On the router, port 80 is forwarded to the local IP

 

Type service: HTTP    External port: 80    Internal IP:  192.168.0.103  Internal port: 80    Protokol: TCP

 

If you run an Indy application on this port, then the connection from the external network is successful.

 

What could be the reason?

 


 

08-18-2021, 07:08 AM:

 

Does your license allow http.sys?

 


 

08-18-2021, 08:44 AM:

 

I have an Ultimate license. Judging by the description, she should allow me to do this.

 


 

08-18-2021, 09:26 PM:

 

Ok, so seems that it is the registration of the external network interface address.

 

How's your ServerController.HttpSysOptions?

 

You can try to register the external interface explicitly via ServerController.OnBind. Try something like this:

 

procedure TIWServerController.IWServerControllerBaseBind(const aHttpBindings,

 

aHttpsBindings: TStrings);

 

begin

 

aHttpBindings.Add('http://46.191.248.132/MyBase1/');

 

end;

 

See how it behaves

 


 

08-18-2021, 10:00 PM:

 

Sorry, but looks like your site (http://46.191.248.132/MyBase1/) is working... So I'm assuming you found what was wrong?

 


 

08-19-2021, 12:56 AM:

 

BTW I strongly recommend you to update to IW 15.2.36.

 


 

08-19-2021, 05:19 AM:

 

No. The problem is not solved, Another application was installed on this port yesterday.

 

When compiling with your recommendation, an error occurs

 

Error: [HttpSys] A call to "HttpAddUrlToUrlGroup" failed: ???????? ????? ??????? (The parameter is set incorrectly)

 

http://46.191.248.132/MyBase1/

 


 

08-19-2021, 05:51 AM:

 

How's the other properties of HttpsysOptions?

 


 

08-19-2021, 08:42 AM:

 

AddDefaultBinding = true

 

HostWildcard =hwString

 

LimitThreadCountInDebug = true

 

ThreadsPerCore = 0

 

VirtualHostNames = ''

 


 

08-19-2021, 10:11 PM:

 

set AddDefaultBinding to False and enable that code that I showed you. It should link to that interface.