c# - IIS Express refuse connection from public IP -


this question has answer here:

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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -