c# - How to Deploy Owin Self Hosted Application In Production? -
i have asp.net owin self hosted webapi application. application can installed windows service in production environment.
currently i'm running , accessing service via url http://localhost:8000 successfully.
now want map service domain access public network. have registered domain , have control on it. ex: www.myservice.com
how can point domain webapi service self hosted application?
in order allow public access self-hosted owin web api app. follow following steps:
allow inbound connections firewall
run
wf.msccommand open windows firewall advanced security , add new inbound rule tcp port 8000 or port want use.you can make sure service getting request opening
<machine public ip>:8000other machines.get static ip isp
request isp static ip. of times isp charges that. if have static ip, skip step , move next step.
point domain static ip
lastly, go domain
dns manager, adda recordhost name = www,ip adress = <your machine static ip>.you might need add
a recordhost name = @,ip adress = <your machine static ip>if want want access service withoutwww.the procedure of adding record varies. can read knowledge base documents provided registered on how add
a record.
Comments
Post a Comment