Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

self Hosting web API with window server for live

$
0
0

Hello,

currently i'm using self hosting windows service method for API

 public string baseAddress = "http://localhost:9000";
        private IDisposable _server = null;
        public TrackProgress()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            InitializeSelfHosting();
        }

        protected override void OnStop()
        {
        }
        public void InitializeSelfHosting()
        {
            _server = WebApp.Start<Startup>(url: baseAddress);
        }

everything working fine, now i want to use baseAddress  with http://www.example.com:9000  instead of localhost:9000  in live windows server. is this work?

or do i need to make any additional configuration?

Appreciate for quick and best response


Viewing all articles
Browse latest Browse all 4850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>