Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTTP.sys Does not work from the global network
#1
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?
Reply
#2
Does your license allow http.sys?
Reply
#3
I have an Ultimate license. Judging by the description, she should allow me to do this.
Reply
#4
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
Reply
#5
Sorry, but looks like your site (http://46.191.248.132/MyBase1/) is working... So I'm assuming you found what was wrong?
Reply
#6
BTW I strongly recommend you to update to IW 15.2.36.
Reply
#7
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/
Reply
#8
How's the other properties of HttpsysOptions?
Reply
#9
AddDefaultBinding = true
HostWildcard =hwString
LimitThreadCountInDebug = true
ThreadsPerCore = 0
VirtualHostNames = ''
Reply
#10
set AddDefaultBinding to False and enable that code that I showed you. It should link to that interface.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)