this question has answer here:
- iis express enable external request 20 answers
i've developed webapi server. if use localhost:9615/api/method
works fine. if use ip address 192.168.0.1:9615/api/method
.
i few weeks ago if connected through router port forwarding 123.123.123.123:9615/api/method
worked well, not work anymore. connection refused back. there i'm missing. when connect ip iis welcome screen comes on means port forwarding works, reason webapi app not want accept connection.
i've changed applicationhost.config
accept external connections
<binding protocol="http" bindinginformation="*:9615:localhost" /> <binding protocol="http" bindinginformation="*:9615:*" />
i added url reservation with
netsh http add urlacl url=http://*:9615/ user=everyone
it shows in reservations
reserved url : http://*:9615/ user: \everyone listen: yes delegate: no sddl: d:(a;;gx;;;wd)
from wireshark seems ack send through, rst. there lot of retransmissions, , rst, ack.
iis express default allows localhost access. need enable external access, see: iis express enable external request. should use full blown iis, not costs money. it's more robust , has more features.
Comments
Post a Comment