I'm fairly new to WCF. I want to send the client an URL, which points to a file on the server, so the client can download\view it.
So my idea is that I add the relative path to the IP the service is listening on.
The problem is, that every solution I found gives back localhost:someport/mysite
Obviously, this is not really useful for the client.
Is there even a way to get the public IP from code on which the service is hosted?
Or should I just include the address in the config file, and change it whenever the IP changes?
EDIT: Thanks for the quick help guys, I will just include it in the config file then.