The first thing I want to know is why you want to use UDP, while you're
expecting
a reply from the client... Why not simply use TCP, which will automatically
give
you a reply if it's able to connect.

It should be possible to use UDP though, I made a very simple demo-chat
application
a while ago with only a few lines of code, just to let others see how to use
TIdUDP.
If you want a copy, just ask and I'll put it on-line again.

Greetz,

Peter.

  -----Oorspronkelijk bericht-----
  Van: [email protected] [mailto:[EMAIL PROTECTED]
Paul Bennett
  Verzonden: woensdag 16 juli 2008 11:24
  Aan: [email protected]
  Onderwerp: [delphi-en] UDP Broadcast


  I'm having real problems with this (which I'm sure is actually really
  easy).

  I'm working on a Client/Server application which will be running over
  our LAN. What I would like to do is when a Client starts up it sends a
  UDP broadcast to a specific Port which is being monitored by the
  Server app. When the server gets the broadcast it responds by sending
  a UDP message back to the originating client containing the servers IP
  address.

  All future traffic between Client and Server would then be Peer to
  Peer across TCP/IP.

  I have created two test apps, one broadcasts the UDP message (Client)
  and the other (Server) should respond, both apps contain UDPServer and
  UDPClient components. My problem is that the Server
  never seems to receive the Message.

  Can anyone either point me to some code that works that I could use
  that as my starting point, or explain, in words of one syllable how to
  achieve my aim?

  TIA

  Paul



  


[Non-text portions of this message have been removed]

Reply via email to