Answer the question
In order to leave comments, you need to log in
How to host WCF on the console so that the service is available on the local network?
Good afternoon.
I created the wcf service, hosted it on the console, launched the console.
I made a client, launched it - everything is OK, the service is working properly.
Copied exe-shnik and .config of the client on the machine in a local area network. I start it - after 30 seconds I get an exception: it was not possible to reach the endpoint at 192.168.xxx.xxx.
I also cannot reach the service through a browser from a remote computer (from the local one - only on the way).
Question: how to host a wcf service through a console (WinForms) application so that there is access to the local network (excluding IIS)?
Answer the question
In order to leave comments, you need to log in
console (WinForms)
http://+:порт/
- and if you have http, then you will need administrator rights to start (because the service will be registered in the http.sys system handler). Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question