I Have a scenario of chat applicatio开发者_运维知识库n. A server and two client. Since I'm a newbie to WCF, I was wondering how to host this service so the client will only interact with the service via internet. In other words when a message is sent it will journey with internet to get to the service and from there it will go to the other client.
Console, Windows service , asp.net with IIS no matter... as soon as the port is enable and the server machine is reachable from the internet it will work. After that is your own choice.
No magic, just expose the service to the Internet. You use the same methodology as you would to expose a website to the internet. Host it on a public IP address and you're good to go.
精彩评论