Im building a software which will be published on a specific server.An user will download the software from that specific website & will install it.

My problem is, i want to retrieve the URL of the server from which the software is downloaded.Yes,there can be different servers too..& when the user will install the software, the URL should be placed in the config file of the application. I just want to know how can we retrieve the downloading URL & save it into the config file..

Thanks in advance..

I don't think that is possible on server or client side. It can be done if you modify web browser.