Skip to content

Can't connect to ts server #38

@n00bst3r

Description

@n00bst3r

Hi!

I don't get what I'm doing wrong here.
This is in general my ClientSocket Bean:

@Bean
	public LocalTeamspeakClientSocket localTeamspeakClientSocket() throws IOException, TimeoutException, CommandException, InterruptedException, GeneralSecurityException {
		LocalTeamspeakClientSocket localTeamspeakClientSocket = new LocalTeamspeakClientSocket();
		localTeamspeakClientSocket.setIdentity(LocalIdentity.generateNew(10));
		localTeamspeakClientSocket.setNickname("Audiobot");
		localTeamspeakClientSocket.addListener(new Ts3AudioBotListener());
		return localTeamspeakClientSocket;

	}

And this is the way I connect to the server:

`          localTeamspeakClientSocket.connect(
                    new InetSocketAddress(
                            InetAddress.getByName(appConfig.getServerurl()),
                            appConfig.getServerport() // UDP client port, Teamspeak3 client uses 9987
                    ),
                    appConfig.getServerpassword(),
                    50000L
            );`

The password is correct if I debug and look at the password.

But the response from the Server is:

[DEBUG] [COMMAND] error id=1028 msg=invalid\sserver\spassword

I don't get what I'm doing wrong here. Do you have any idea?

Thanks for your help in advance and best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions