Gunpowder
Mitglied
Hallo liebe User,
schreibe grad in Java ein Socket / Client Projekt!
So folgendes hab ich:
Aber es kommt folgender Fehler wenn ich in Eclipse es Teste:
Und was ich den Fehler entnehmen kann ist, dass Java den Socket nicht an den Port binden kann (was aber nicht sein kann, da ich es mit verschiedenen Ports getestet habe)! Was tun! Hilfe wäre cool!
schreibe grad in Java ein Socket / Client Projekt!
So folgendes hab ich:
Code:
try {
socket = new ServerSocket(13467);
System.out.println("OK 01");
} catch (IOException e) {
e.printStackTrace();
}
Code:
java.net.BindException: Cannot assign requested address: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at MultiPlayerServer.<init>(MultiPlayerServer.java:16)
at LMouse.mouseClicked(LMouse.java:15)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)