Connecting Tech Pros Worldwide Forums | Help | Site Map

downloading a software update code

Newbie
 
Join Date: May 2008
Posts: 17
#1: Nov 9 '08
Hello,

Our company has an application that are installed on our clients computer,
when the client wants to check for updates he click the update button from his installed application.

here is the problem:
the download works fine but it's using a specific i.p. address, which is our webserver. it's hard coded i.p. address like 192.61.80.01
we would like to make the download more general and use the url instead of hard coded i.p. address, meaning to use www.ourUrl.com.

this is in order to be more flexible and in a case that our web server is down
we can use a different server with different i.p.

does this make sense to you? let me know if you need more information.

any idea how to implement that or any guidance will be appreciated.

joedeene's Avatar
Site Addict
 
Join Date: Jul 2008
Location: US of A
Posts: 587
#2: Nov 9 '08

re: downloading a software update code


Well, you can always put an open text file on your server, so that no matter what server/ip is hosting it, it will have instructions, or maybe you can put the whole update on.

Ex: "www.myserver.com/myprogramsfolder/update34.txt"

Therefore, by downloading the text file, or whatever file you put on there, it will always be there no matter what IP. And to check which update you're on, record each previous update number...

If you are connecting to the IP address, via TCPClient connection then, I believe there are methods and such in the System.Net.DNS Class that you may find useful to return the IP of your server.

joedeene
Reply