help with an exception when trying to establish a socket connection
i am trying to make a chat (using an applet for the client).......
it uses an simple socket connection between the server and clients.....when i connect the client to address 127.0.0.1 or localhost everything works fine, but when i try to connect the client to my DNS name or ip, i get an exception....the exception reads:
java.security.AccessControlException: access denied (java.net.SocketPermission nextwave.dyndns.org resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1042)
at java.net.InetAddress.getAllByName0(InetAddress.java:937)
at java.net.InetAddress.getAllByName0(InetAddress.java:918)
at java.net.InetAddress.getAllByName(InetAddress.java:912)
at java.net.InetAddress.getByName(InetAddress.java:832)
at java.net.InetSocketAddress.<init>(InetSocketAddress.java:109)
at java.net.Socket.<init>(Socket.java:119)
at Client.<init>(Client.java:42)
at ClientApplet.init(ClientApplet.java:12)
at sun.applet.AppletPanel.run(AppletPanel.java:347)
at java.lang.Thread.run(Thread.java:536)
wat is this all about??????
i'm not that fluent in java or networking at that, but i'm sure there is something i can do to fix this......
any help would be greatley appreciated.
Linux?!?!?!
What is that, something to eat?
"All things being equal, the simplest solution tends to be the best."
Acham's Razor
Bookmarks