EJP wrote:commits the lesson to memory
No. This is a Java security sandbox problem. Any time you get "access denied" with a named permission, you are runing under the control of a SecurityManager and you need to grant yourself that permission. In this case, java.net.SocketPermission 127.0.0.1:1099 connect,resolve.