         
         self.handler = handler
         
-        createSocket()
+        si_host = sockaddr_in(
+            sin_len:    __uint8_t(MemoryLayout<sockaddr_in>.size),
+            sin_family: sa_family_t(AF_INET),
+            sin_port:   UDPBroadcastConnection.htonsPort(port: port),
+            sin_addr:   INADDR_ANY,
+            sin_zero:   ( 0, 0, 0, 0, 0, 0, 0, 0 )
+        )
+        
+        createSocket2()
     }
     
     deinit {

    open func sendBroadcast(_ message: String) {
        
        if responseSource == nil {
            guard createSocket() else {
                print("UDP ServerConnection initialization failed.")
                return
            }

    
    /// The address of the UDP socket.
    var address: sockaddr_in
    var si_host: sockaddr_in
    
    /// Closure that handles incoming UDP packets.
    var handler: ((_ ipAddress: String, _ port: Int, _ response: [UInt8]) -> Void)?
