From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:8452:: with SMTP id g79-v6mr7681505iod.38.1530619626541; Tue, 03 Jul 2018 05:07:06 -0700 (PDT) X-Received: by 2002:aca:c6ca:: with SMTP id w193-v6mr3516891oif.1.1530619626347; Tue, 03 Jul 2018 05:07:06 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!u78-v6no581094itb.0!news-out.google.com!z3-v6ni777iti.0!nntp.google.com!d7-v6no572305itj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 3 Jul 2018 05:07:06 -0700 (PDT) In-Reply-To: <10ab697c-0f8d-4896-bf4e-44d01f685139@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=101.164.108.182; posting-account=wavAeAoAAAAZF_sXSZepBukuPCBO0Zqt NNTP-Posting-Host: 101.164.108.182 References: <10ab697c-0f8d-4896-bf4e-44d01f685139@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <67aa23c7-0f03-4955-98c6-4669dfafcef2@googlegroups.com> Subject: Re: UDP Send gets NETWORK_IS_UNREACHABLE From: alby.gamper@gmail.com Injection-Date: Tue, 03 Jul 2018 12:07:06 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:53526 Date: 2018-07-03T05:07:06-07:00 List-Id: On Tuesday, July 3, 2018 at 8:43:34 PM UTC+10, Petter Fryklund wrote: > Hi all, >=20 > We have a need to send a broadcast message. In the test environment on Wi= ndows everything is fine. But in the productional environment on Linux we r= eceive Socket Error NETWORK_IS_UNREACHABLE. I have searched the net a bit a= nd it seems like we should use so_bindtodev, but that is not available on G= NAT. Does anybody have some advice?=20 >=20 > Regards, > Petter Hi Petter You may need to bind to a specific interface before doing broadcast/multica= st I recall on windows server with multiple NIC's it was required to bind to the specific NIC that was expected to receive the broadcast/multicast. I appreciate this may be the reverse of you situation, But maybe this helps Alex