Atozed Forums

Full Version: HTTP.sys Does not work from the global network
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
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?
Does your license allow http.sys?
I have an Ultimate license. Judging by the description, she should allow me to do this.
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
Sorry, but looks like your site (http://46.191.248.132/MyBase1/) is working... So I'm assuming you found what was wrong?
BTW I strongly recommend you to update to IW 15.2.36.
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/
How's the other properties of HttpsysOptions?
AddDefaultBinding = true
HostWildcard =hwString
LimitThreadCountInDebug = true
ThreadsPerCore = 0
VirtualHostNames = ''
set AddDefaultBinding to False and enable that code that I showed you. It should link to that interface.
Pages: 1 2 3