PDA

Click to See Complete Forum and Search --> : Help on Client-Server & IP address with VB6?


winall2
Aug 8th, 2005, 04:45 AM
Hi,

I just want to write a client-server application on a LAN network using VB6.
The server will accept connection request from client and respond to data request from them.
The client has to know the IP address of server machine. Anyone know how to retrieve the IP of server machine from its name?
Any one can help me with this application: design, techniques, classes and error handling ?

Many thanks.

Hack
Aug 8th, 2005, 07:59 AM
Welcome to the forums. :)

Are you using DHCP or is the Ip static?

winall2
Aug 9th, 2005, 01:52 AM
Hi,

I'm using a LAN with DHCP, so the IP address of the server is not fixed.
Also, can anyone suggest a protcol for data exchange btw client and server ?
Thanks.

anotherVBnewbie
Aug 11th, 2005, 01:15 AM
I'm pretty sure that there's APIs for this. Maybe searching MS for information on networks will turn up something but I can't remember which API to point you at.

The protocol you use would depend on the transaction you are performing. Unidirectional would probably indicate UDP....

k1ll3rdr4g0n
Aug 11th, 2005, 02:04 AM
@winall2
I would suggest using the TCP protocol because your data is more likley to get on the other side as oppsed to UDP.

Prehaps you can use the winsock control?