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.msc
command 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>:8000
other 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 record
host name = www
,ip adress = <your machine static ip>
.you might need add
a record
host 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