From: Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP>
Subject: Re: UDP Send gets NETWORK_IS_UNREACHABLE
Date: Fri, 6 Jul 2018 18:46:39 -0000 (UTC)
Date: 2018-07-06T18:46:39+00:00 [thread overview]
Message-ID: <phodef$gsi$1@dont-email.me> (raw)
In-Reply-To: 45524b25-450f-4d66-a260-ae9a94adeffd@googlegroups.com
On 2018-07-06, Petter Fryklund <petter.fryklund@atero.se> wrote:
> Sorry, I got all mixed up. The socket that will send is created by
> getting it's IP from Get_Host_By_Name index 1. In this case
> 127.0.0.1:33333. Then when we try to broadcast to 192.168.255.255 we get
> the NETWORK_IS_UNREACHABLE, maybe because Linux doesn't know which
> interface to use. So we need to supply the correct IP, 192.168.0.20
> somewhere in our class hierarchy, some 5 levels deep.
>
Are you sure that 192.168.255.255 is correct ?
192.168.x.y is by default a class C network (or maybe even smaller
if CIDR is active), not a class B. As such, I wonder if 192.168.0.255
is the correct broadcast address, given the IP address you give above ?
It may be possible to turn 192.168.x.y into a class B, but I have never
seen it done.
Simon.
--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980s technology to a 21st century world
next prev parent reply other threads:[~2018-07-06 18:46 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
2018-07-06 8:48 ` Petter Fryklund
2018-07-06 18:46 ` Simon Clubley [this message]
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