Atozed Forums
HTTP.sys Does not work from the global network - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: HTTP.sys Does not work from the global network (/thread-2489.html)

Pages: 1 2 3


HTTP.sys Does not work from the global network - Сергей Александрович - 08-18-2021

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?


RE: HTTP.sys Does not work from the global network - Alexandre Machado - 08-18-2021

Does your license allow http.sys?


RE: HTTP.sys Does not work from the global network - Сергей Александрович - 08-18-2021

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


RE: HTTP.sys Does not work from the global network - Alexandre Machado - 08-18-2021

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


RE: HTTP.sys Does not work from the global network - Alexandre Machado - 08-18-2021

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


RE: HTTP.sys Does not work from the global network - Alexandre Machado - 08-19-2021

BTW I strongly recommend you to update to IW 15.2.36.


RE: HTTP.sys Does not work from the global network - Сергей Александрович - 08-19-2021

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/


RE: HTTP.sys Does not work from the global network - Alexandre Machado - 08-19-2021

How's the other properties of HttpsysOptions?


RE: HTTP.sys Does not work from the global network - Сергей Александрович - 08-19-2021

AddDefaultBinding = true
HostWildcard =hwString
LimitThreadCountInDebug = true
ThreadsPerCore = 0
VirtualHostNames = ''


RE: HTTP.sys Does not work from the global network - Alexandre Machado - 08-19-2021

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