๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8160

Re: MulticastSocket in w2k

#8160
From: Fco. Javier Ridruejo
Date: Fri, 06 Apr 2001 16:49
38 lines
2241 bytes
"Joi Ellis [TeamB]" <joi@aravox.com> escribi๏ฟฝ en el mensaje
news:3acdc826_1@dnews...
> Fco. Javier Ridruejo <ridruejo@neofis.com> wrote:
> > Hello, I'm working on a multicast application under Java,
> > but in windows2000 the instruction:
>
> > MulticastSocket s = new MulticasSocket(7895)
>
> Try running the app once as administrator or an administrator equivalent,
> and see if the code still hangs.  If it doesn't hang, then I would
> investigate the possibility of Windows2000 using permissions to restrict
> who can open multicast sockets.
>
> I'm guessing this is similar to the security restriction on *nix platforms
> that forbid non-root users from opening listen sockets on ports < 1024.
>

I run it under the Administrator account, from inside JBuilder4
(registered), and I have tried to look for socket security permissions in
Windows2000 , but I haven't seen anything.

When I interrupt the thread which is hung with the call to MulticastSocket,
then the program throws:

java.lang.InterruptedException

 at java.net.MulticastSocket.create(MulticastSocket.java:128)

 at java.net.DatagramSocket.<init>(DatagramSocket.java:140)

 at java.net.DatagramSocket.<init>(DatagramSocket.java:112)

 at java.net.MulticastSocket.<init>(MulticastSocket.java:104)

 at ConectaMBONE.run(ConectaMBONE.java:17)

Please answer me, thanks very much.
Fco. Javier Ridruejo
Technical Details
Message-ID: <3acdf345_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!194.213.69.151!news.algonet.se!algonet!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews
References: <3acdc535_2@dnews> <3acdc826_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,3e8cffa76c3d9
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-04-06 09:52:01 PST
From: "Fco. Javier Ridruejo" <ridruejo@neofis.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3acdc535_2@dnews> <3acdc826_1@dnews>
Subject: Re: MulticastSocket in w2k
Date: Fri, 6 Apr 2001 18:49:59 +0200
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 213.194.173.5
Message-ID: <3acdf345_2@dnews>
X-Trace: dnews 986575685 213.194.173.5 (6 Apr 2001 09:48:05 -0700)
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!194.213.69.151!news.algonet.se!algonet!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews