|Subject:||UDP server with default binding|
|Posted by:||Frank Shearar (frank.shear…@rnid.org.uk)|
|Date:||Fri, 1 Aug 2003|
This may just be a stupid question, so feel free to tell me to RTFM or
I'm writing a SIP stack, and so must support UDP as a transport layer.
In my tests I send a UDP packet from 127.0.0.1 to my UDP server (a
descendant of TIdUDPDServer, of course). In my (overriding) DoUDPRead, when
I inspect ABinding.IP I see '0.0.0.0'. I was expecting a value of
'127.0.0.1'. (For extra detail, I call inherited right in the beginning of
If I change the binding of the server to only listen on 127.0.0.1 then all
is well and good, and ABinding.IP is the expected '127.0.0.1'.
By comparison, my TCP server, also listening on all interfaces, has the
correct IP in its AThread.Connection.Socket.Binding.IP in my (overriding)