Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server fails to bind to address when the gui is still running #515

Closed
TheButlah opened this issue Jan 25, 2023 · 1 comment
Closed

Server fails to bind to address when the gui is still running #515

TheButlah opened this issue Jan 25, 2023 · 1 comment
Labels
Area: Application Protocol Related to communication with apps like the GUI, overlay, games Difficulty: Newbie Friendly Are you a new contributor looking for something to do? Try this :) Priority: Low Less important right now Type: Bug Something isn't working

Comments

@TheButlah
Copy link
Contributor

TheButlah commented Jan 25, 2023

The websocket address previously used seems to fail to bind to, when the gui is still running. This happens because by default, the OS will reject any attempts to re-bind to the socket until a somewhat long timeout. This behaviour can be disabled by the server when it creates the websocket, I believe.

Here is the stack trace:

00:57:13 [INFO] Running version 0043c30-dirty
00:57:13 [INFO] Starting the tracker server on port 6969...
00:57:18 [INFO] [VRCOSCHandler] Listening to port 9001
00:57:18 [INFO] [VRCOSCHandler] Sending to port 9000 at address /192.168.1.50
00:57:18 [INFO] [Keybinding] Currently only supported on Windows. Keybindings will be disabled.
00:57:18 [SEVERE] log4j:WARN No appenders could be found for logger (org.java_websocket.server.WebSocketServer).
00:57:18 [SEVERE] log4j:WARN Please initialize the log4j system properly.
00:57:18 [SEVERE] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
00:57:18 [SEVERE] [WebSocket] Exception on connection null
java.net.BindException: Address already in use
        at java.base/sun.nio.ch.Net.bind0(Native Method)
        at java.base/sun.nio.ch.Net.bind(Net.java:555)
        at java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:337)
        at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294)
        at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:89)
        at org.java_websocket.server.WebSocketServer.doSetupSelectorAndServerThread(WebSocketServer.java:567)
        at org.java_websocket.server.WebSocketServer.run(WebSocketServer.java:367)
        at java.base/java.lang.Thread.run(Thread.java:833)
00:57:19 [INFO] [TrackerServer] Handshake received from /192.168.51.34:6969
00:57:19 [INFO] [TrackerServer] Tracker 0 added with address /192.168.51.34:6969. Board type: 10, imu type: 4, firmwar
e: 0.3.2 (15), mac: 34:85:18:03:83:C0, name: udp://34:85:18:03:83:C0
00:57:20 [INFO] [TrackerServer] Sensor 0 for udp://34:85:18:03:83:C0 status: 1
00:57:20 [INFO] [TrackerServer] Added sensor 0 for udp://34:85:18:03:83:C0, type 4
00:57:20 [INFO] [TrackerServer] Sensor info for udp://192.168.51.34/0: 1
@TheButlah TheButlah added Type: Bug Something isn't working Area: Application Protocol Related to communication with apps like the GUI, overlay, games Difficulty: Newbie Friendly Are you a new contributor looking for something to do? Try this :) Priority: Low Less important right now labels Jan 25, 2023
@marcozzxx810
Copy link
Contributor

@TheButlah I think we can close this, thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Application Protocol Related to communication with apps like the GUI, overlay, games Difficulty: Newbie Friendly Are you a new contributor looking for something to do? Try this :) Priority: Low Less important right now Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants