Simple Voice Chat

Simple Voice Chat

34M Downloads

"Voice chat not connected" on self hosted server while logs show Successful authentication

Cragsand opened this issue ยท 1 comments

commented

Confirmation

  • I have read the wiki

Bug description

Full server log: https://gist.github.com/Cragsand/a5f838d2fe3738312d54d5a9cfaf9f8d
Full client log: https://gist.github.com/Cragsand/577454591653bb0550cf9e5cb9d3391b
Version: voicechat-forge-1.20.1-2.5.15.jar

Logs show that authentication is successful, ports are open and forwarded but still unable to connect and use it ingame.
Opening to LAN and running a client on the same computer works but not when hosted as a server.

image

Using the ping tool from a windows PC returns "timed out after 10 attempts"

image

There are quite a lot of these entries in the logs but no error is shown.
[VoiceChatAuthenticationThread/INFO] [voicechat/]: [voicechat] Trying to authenticate voice chat connection

Looking at a snippet from the server log it seems authentication works correctly:

[21:33:12] [VoiceChatPacketProcessingThread/INFO] [voicechat/]: [voicechat] Successfully authenticated player 6960bcb8-1bdb-4da8-b31e-5b461cba7ad1
[21:34:53] [Server thread/INFO] [minecraft/ServerGamePacketListenerImpl]: Cragsand lost connection: Disconnected
[21:34:53] [Server thread/INFO] [minecraft/MinecraftServer]: Cragsand left the game
[21:34:53] [Server thread/INFO] [voicechat/]: [voicechat] Disconnecting client Cragsand
[21:34:54] [User Authenticator #2/INFO] [minecraft/ServerLoginPacketListenerImpl]: UUID of player Cragsand is 6960bcb8-1bdb-4da8-b31e-5b461cba7ad1
[21:35:02] [Server thread/INFO] [minecraft/PlayerList]: Cragsand[/[SERVER ADRESS REMOVED]:54237] logged in with entity id 649 at (-199.19885153082072, 64.0, 121.34106608361552)
[21:35:02] [Server thread/INFO] [minecraft/MinecraftServer]: Cragsand joined the game
[21:35:02] [Server thread/INFO] [un.UntamedWilds/]: Firing player login event
[21:35:02] [Server thread/INFO] [or.ze.so.SolarFlux/]: Sending solar panels to Cragsand.
[21:35:02] [Server thread/INFO] [Jade/]: Syncing config to Cragsand (6960bcb8-1bdb-4da8-b31e-5b461cba7ad1)
[21:35:02] [Server thread/INFO] [mc.li.se.DefaultModSetup/]: Client logged in: sending dimlet packages
[21:35:03] [Server thread/INFO] [voicechat/]: [voicechat] Received secret request of Cragsand (18)
[21:35:03] [Server thread/INFO] [voicechat/]: [voicechat] Sent secret to Cragsand
[21:35:06] [VoiceChatPacketProcessingThread/INFO] [voicechat/]: [voicechat] Successfully authenticated player 6960bcb8-1bdb-4da8-b31e-5b461cba7ad1

Config voicechat-server.properties:

# Simple Voice Chat server config v1.20.1-2.5.15

# The port of the voice chat server
# Setting this to "-1" sets the port to the Minecraft servers port (Not recommended)
port=24454
# The IP address to bind the voice chat server on
# Leave empty to use 'server-ip' of server.properties
# To bind to the wildcard address, use '*'
bind_address=
# The distance to where the voice can be heard
max_voice_distance=48.0
# The multiplier of the voice distance when crouching
crouch_distance_multiplier=1.0
# The multiplier of the voice distance when whispering
whisper_distance_multiplier=0.5
# The opus codec
# Possible values are 'VOIP', 'AUDIO' and 'RESTRICTED_LOWDELAY'
codec=VOIP
# The maximum size in bytes that voice packets are allowed to have
mtu_size=1024
# The frequency at which keep alive packets are sent
# Setting this to a higher value may result in timeouts
keep_alive=1000
# If group chats are allowed
enable_groups=true
# The host name that clients should use to connect to the voice chat
# This may also include a port, e.g. 'example.com:24454'
# Don't change this value if you don't know what you are doing
voice_host=
# If players are allowed to record the voice chat
allow_recording=true
# If spectators are allowed to talk to other players
spectator_interaction=false
# If spectators can talk to players they are spectating
spectator_player_possession=false
# If players without the mod should get kicked from the server
force_voice_chat=false
# The amount of milliseconds, the server should wait to check if the player has the mod installed
# Only active when force_voice_chat is set to true
login_timeout=10000
# The range where the voice chat should broadcast audio to
# A value <0 means 'max_voice_distance'
broadcast_range=-1.0
# If the voice chat server should reply to pings
allow_pings=true

Port 24454 udp is opened in the server firewall and forwarded.
Server is hosted on a Kubuntu linux PC using pufferpanel and modded server works fine otherwise except voice chat.
I also tried changing to different ports, 40001, 54237 etc and configured port forwarding accordingly since that seemed to be general advice offered elsewhere although I don't know why that would make much difference.

Minecraft version

1.20.1

Mod/Plugin version

2.5.15

Mod/Plugin loader and version

NeoForge 1.20.1-47.1.105

Steps to reproduce

  1. Install on 1.20.1 NeoForge server
  2. Configure voice chat ingame
  3. Hit the push to talk button
  4. Get the error message "Voice chat not connected"

Expected behavior

Voice chat connects

Log files

https://gist.github.com/Cragsand/a5f838d2fe3738312d54d5a9cfaf9f8d

Screenshots

No response

commented

As stated in the issue template. This is the wrong place.