Results 1 to 5 of 5

Thread: Help on Client-Server & IP address with VB6?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Posts
    9

    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.
    Last edited by winall2; Aug 10th, 2005 at 01:54 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Help on Client-Server & IP address with VB6?

    Welcome to the forums.

    Are you using DHCP or is the Ip static?

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Posts
    9

    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.

  4. #4
    Fanatic Member
    Join Date
    Jan 2005
    Location
    In front of this pc.
    Posts
    580

    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....

  5. #5
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    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?
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width