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.
Like http://86.1.2.3:8123/myfolder/myfile.rar
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 the 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.