Help on Client-Server & IP address with VB6?
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.
Re: Help on Client-Server & IP address with VB6?
Welcome to the forums. :)
Are you using DHCP or is the Ip static?
Re: Help on Client-Server & IP address with VB6?
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.
Re: Help on Client-Server & IP address with VB6?
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....
Re: Help on Client-Server & IP address with VB6?
@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?