Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Knute Johnson Newsgroups: comp.lang.java.programmer Subject: Re: New Java JDK released Date: Thu, 16 Jan 2014 09:29:07 -0800 Organization: A noiseless patient Spider Lines: 22 Message-ID: References: <52d69e7f$0$2945$e4fe514c@news2.news.xs4all.nl> <52d70cf7$0$2891$e4fe514c@news2.news.xs4all.nl> <52d72450$0$2958$e4fe514c@news2.news.xs4all.nl> <52d74f75$0$305$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 16 Jan 2014 17:29:07 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="aba33539224e5c782fe0c4053f7756fd"; logging-data="6260"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18J2vmLZ+qHiAEz+xFUye2J" User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <52d74f75$0$305$14726298@news.sunsite.dk> Cancel-Lock: sha1:NXuPyQk067IQW7Vm44rLaCwTSF0= Xref: csiph.com comp.lang.java.programmer:27321 On 1/15/2014 19:18, Arne Vajhøj wrote: > import java.io.IOException; > import java.net.ServerSocket; > import java.rmi.RMISecurityManager; > > public class SMSS { > public static void main(String[] args) throws IOException { > System.setSecurityManager(new RMISecurityManager()); > new ServerSocket(2000); > } > } I modified your code a little to use a plain SecurityManager and tested it on my Windows 8.1. The ports 49151 and below throw the exception but not above that. Some fellow over on the Ubuntu users list just had his stock quote program upchuck when he updated to _51 on U. -- Knute Johnson