comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: UDP Send gets NETWORK_IS_UNREACHABLE
Date: Fri, 6 Jul 2018 10:28:08 +0200
Date: 2018-07-06T10:28:08+02:00	[thread overview]
Message-ID: <phn96n$s26$1@gioia.aioe.org> (raw)
In-Reply-To: c5558662-e74f-4bed-98e1-fdb2d42c9705@googlegroups.com

On 2018-07-06 10:12, Petter Fryklund wrote:
> Den fredag 6 juli 2018 kl. 09:23:47 UTC+2 skrev Dmitry A. Kazakov:
>> On 2018-07-06 07:31, Petter Fryklund wrote:
>>> This is getting weirder. Get_Host_By_Name returns two addresses, 127.0.0.1 and 127.0.0.1. The broadcasts are going to a very narrow network ;-)
>>
>> You have the network setting broken. I believe I had such a problem with
>> a Linux box and resolved it. I forgot what was it.
>>
>> But you can always set the address manually instead of Get_Host_By_Name,
>> e.g. Inet_Addr ("192.168.2.100") etc.
> 
> This is related to what we do, setting the broadcast address to 192.168.255.255, which results in NETWORK_IS_UNREACHABLE.

Do you try to bind the socket to a broadcast address? That won't go. You 
bind it to the host's address in the network you want to broadcast to. 
E.g. in the network 192.168.1.0 your machine has the address 
192.168.1.100. You bind socket to this address. Then you can broadcast 
to the broadcast address of the network 192.168.1.255.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2018-07-06  8:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-03 10:43 UDP Send gets NETWORK_IS_UNREACHABLE Petter Fryklund
2018-07-03 12:07 ` alby.gamper
2018-07-04  9:53   ` Petter Fryklund
2018-07-03 12:16 ` Dmitry A. Kazakov
2018-07-04  9:50   ` Petter Fryklund
2018-07-04 10:23     ` Dmitry A. Kazakov
2018-07-04 11:11       ` Petter Fryklund
2018-07-04 13:07         ` Petter Fryklund
2018-07-04 13:42           ` Dmitry A. Kazakov
2018-07-06  5:31             ` Petter Fryklund
2018-07-06  7:23               ` Dmitry A. Kazakov
2018-07-06  8:10                 ` Petter Fryklund
2018-07-08 15:28                   ` Simon Wright
2018-07-06  8:12                 ` Petter Fryklund
2018-07-06  8:28                   ` Dmitry A. Kazakov [this message]
2018-07-06  8:48                     ` Petter Fryklund
2018-07-06 18:46                       ` Simon Clubley
2018-07-06  8:24                 ` Petter Fryklund
2018-07-04 13:31         ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox