|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Finding a webservice serverI have a classic client server app. When the client is installed on the PC I would like the client application to some how 'find' the server or servers that host the server logic. Kind of like how the SQL tools, can list all the SQL servers in the network. My thoughts are to have the server running some sort of web service, listening on a port, and the client does some sort of IP broadcast on that port. When the broadcast happens, the webservice responds, and the client then knows the name/details of the server. I figure this is a good way to do this, but have no idea on how to go about it. Is there an easier solution to this ? The server is based on SQL, so another option is to get a list of the SQL Servers, and then use that. Thanks Here is example how to get list of all comp. On your network:
http://www.codeproject.com/vb/net/MyLanApp.asp Show quoteHide quote "Aussie Rules" wrote: > Hi, > > I have a classic client server app. > > When the client is installed on the PC I would like the client application > to some how 'find' the server or servers that host the server logic. > > Kind of like how the SQL tools, can list all the SQL servers in the network. > > My thoughts are to have the server running some sort of web service, > listening on a port, and the client does some sort of IP broadcast on that > port. When the broadcast happens, the webservice responds, and the client > then knows the name/details of the server. > > I figure this is a good way to do this, but have no idea on how to go about > it. > > Is there an easier solution to this ? > > The server is based on SQL, so another option is to get a list of the SQL > Servers, and then use that. > > Thanks > > > well i have just recently implemeted exactly what you mention in my project
in my situation i used UDP broadcasting as it does not require anny user configuration ( i dont have to know the servers / clients ip to send a message ) i implemented the sender and receiver in 2 simple to use classes , if you are interested i can send you an example i have atached a example with this post but i do not know if it is allowed to send binary`s to this newsgroup regards Michel Posseth [MCP] Show quoteHide quote "Aussie Rules" <n*@body.com> wrote in message [attached file: UDP.zip]news:uzuJHhLfFHA.3916@tk2msftngp13.phx.gbl... > Hi, > > I have a classic client server app. > > When the client is installed on the PC I would like the client application > to some how 'find' the server or servers that host the server logic. > > Kind of like how the SQL tools, can list all the SQL servers in the > network. > > My thoughts are to have the server running some sort of web service, > listening on a port, and the client does some sort of IP broadcast on that > port. When the broadcast happens, the webservice responds, and the client > then knows the name/details of the server. > > I figure this is a good way to do this, but have no idea on how to go > about > it. > > Is there an easier solution to this ? > > The server is based on SQL, so another option is to get a list of the SQL > Servers, and then use that. > > Thanks > > |
|||||||||||||||||||||||