Cant connect to localhost server

I am trying to connect to my localhost server that I started yesterday. Yesterday it worked just fine, but today, I try to connect to it, I get an error message that says “failed to connect to server”. In the client log it says ‘No connection could be made because the target machine actively refused it’ and also ‘An existing connection was forcibly closed by the remote host’

Client Log:

11/2/2022 20:02:08 Info TeamSpeak Client 3.5.6 (2020-11-25 13:53:42)
11/2/2022 20:02:08 Info SystemInformation: Windows 10 (19044) x64 (AMD or Intel) Binary: 64bit
11/2/2022 20:02:08 Info Using hardware aes
11/2/2022 20:02:08 Direct Sound Debug setting timer resolution to 1ms -
11/2/2022 20:02:08 ClientUI Info OpenGL Info: LibGLES, Vendor: Google Inc., Renderer: ANGLE (NVIDIA GeForce GTX 1660 Direct3D11 vs_5_0 ps_5_0), Version: OpenGL ES 2.0 (ANGLE 2.1.0.57ea533f79a7)
11/2/2022 20:02:08 Info *** Time [ICONMANGER]: 126
11/2/2022 20:02:08 Addons Info Checking for addon updates…
11/2/2022 20:02:08 Plugins Info Loading plugin: gamepad_joystick_win64.dll
11/2/2022 20:02:08 Gamepad Plugin Info Found client raw input wnd proc
11/2/2022 20:02:08 Gamepad Plugin Info Cleared device list
11/2/2022 20:02:08 Gamepad Plugin Info Found device \?\HID#VID_046D&PID_C53F&MI_02&COL03#8&3DCF7CA&0&0002#{4D1E55B2-F16F-11CF-88CB-001111000030}
11/2/2022 20:02:08 Plugins Info Loading plugin: teamspeak_control_plugin_win64.dll
11/2/2022 20:02:08 ControlPlugin Info Control Plugin started, accepting connections
11/2/2022 20:02:08 Plugins Info Loading plugin: clientquery_plugin_win64.dll
11/2/2022 20:02:08 Query Info listening on 127.0.0.1:25639
11/2/2022 20:02:08 Plugins Info Loading plugin: acre2_win64.dll
11/2/2022 20:02:08 Windows Audio Session Devel DeviceDeleteList::wait_for_deletes - enter - DeviceDeleteList
11/2/2022 20:02:08 Windows Audio Session Devel DeviceDeleteList::wait_for_deletes - leave - DeviceDeleteList
11/2/2022 20:02:09 Addon Info Addon up to date.
11/2/2022 20:02:09 Info *** Time [BUILD_GUI]: 219
11/2/2022 20:02:09 Info *** Time [SERVERVIEW]: 250
11/2/2022 20:02:09 Addon Info Addon up to date.
11/2/2022 20:02:09 Info *** Time [SERVERVIEWMANAGER]: 264
11/2/2022 20:02:09 Info *** Time [MAINWINDOW]: 755
11/2/2022 20:02:09 Info *** Time [INIT]: 755
11/2/2022 20:02:09 ClientUI Info Qt version: 5.12.3
11/2/2022 20:02:09 ClientUI Info Using configuration location: C:\Users\chefs\AppData\Roaming\TS3Client\settings.db
11/2/2022 20:02:09 Addon Info Addon up to date.
11/2/2022 20:02:09 ClientUI Info Last update check was: Wed Nov 2 11:29:26 2022
11/2/2022 20:02:09 Info Statistics report: Not yet, next report on Mon Nov 7 16:43:56 2022
11/2/2022 20:02:09 Bookmarks Info Collecting autoconnect bookmarks
11/2/2022 20:02:10 Newsticker Info Newsticker next check: Wed Nov 2 23:43:57 2022 GMT
11/2/2022 20:02:11 ClientUI Info Connect to server: localhost
11/2/2022 20:02:11 ClientUI Info Trying to resolve localhost
11/2/2022 20:02:11 TSDNS Info A/AAAA DNS resolve successful, localhost =(h: ::1 p:0), (h: 127.0.0.1 p:0)
11/2/2022 20:02:11 ClientUI Info Lookup finished: ip=::1 port=9987 query=localhost error=0
11/2/2022 20:02:11 ClientUI Info Resolve successful: [::1]:9987127.0.0.1:9987
11/2/2022 20:02:11 ClientUI Info Initiating connection: [::1]:9987
11/2/2022 20:02:11 Windows Audio Session Devel DeviceDeleteList::wait_for_deletes - enter - DeviceDeleteList
11/2/2022 20:02:11 Windows Audio Session Devel DeviceDeleteList::wait_for_deletes - leave - DeviceDeleteList
11/2/2022 20:02:11 Windows Audio Session Debug WAS::openDevice-enter - {0.0.0.00000000}.{4e83a20d-5b58-469a-a381-313914ca88bc}
11/2/2022 20:02:11 Windows Audio Session Devel Mix Format: SRate:48000 Bitrate: 32 Channels: 2 - Speakers (Steam Streaming Speakers)
11/2/2022 20:02:11 Windows Audio Session Devel Initializing with mix format. - Speakers (Steam Streaming Speakers)
11/2/2022 20:02:11 Windows Audio Session Info Initialized with 2 channels in 32bit, 48kHz. - Speakers (Steam Streaming Speakers)
11/2/2022 20:02:11 Windows Audio Session Devel WAS Buffer size: 1056 - Speakers (Steam Streaming Speakers)
11/2/2022 20:02:11 Windows Audio Session Debug WAS::openDevice-leave - {0.0.0.00000000}.{4e83a20d-5b58-469a-a381-313914ca88bc}
11/2/2022 20:02:11 Windows Audio Session Debug WAS::startDevice-enter - {0.0.0.00000000}.{4e83a20d-5b58-469a-a381-313914ca88bc}
11/2/2022 20:02:11 Windows Audio Session Debug WAS::startDevice-leave - {0.0.0.00000000}.{4e83a20d-5b58-469a-a381-313914ca88bc}
11/2/2022 20:02:11 Windows Audio Session Devel DeviceDeleteList::wait_for_deletes - enter - DeviceDeleteList
11/2/2022 20:02:11 Windows Audio Session Devel DeviceDeleteList::wait_for_deletes - leave - DeviceDeleteList
11/2/2022 20:02:11 Windows Audio Session Debug WAS::openDevice-enter - {0.0.1.00000000}.{aa28428a-311d-468c-8a61-09c4710d4507}
11/2/2022 20:02:11 Windows Audio Session Devel Mix Format: SRate:48000 Bitrate: 32 Channels: 2 - Microphone (Yeti Nano)
11/2/2022 20:02:11 Windows Audio Session Devel Initializing with mix format. - Microphone (Yeti Nano)
11/2/2022 20:02:11 Windows Audio Session Info Initialized with 2 channels in 32bit, 48kHz. - Microphone (Yeti Nano)
11/2/2022 20:02:11 Windows Audio Session Devel WAS Buffer size: 1056 - Microphone (Yeti Nano)
11/2/2022 20:02:11 Windows Audio Session Debug WAS::openDevice-leave - {0.0.1.00000000}.{aa28428a-311d-468c-8a61-09c4710d4507}
11/2/2022 20:02:11 Windows Audio Session Debug WAS::startDevice-enter - {0.0.1.00000000}.{aa28428a-311d-468c-8a61-09c4710d4507}
11/2/2022 20:02:11 Windows Audio Session Debug WAS::startDevice-leave - {0.0.1.00000000}.{aa28428a-311d-468c-8a61-09c4710d4507}
11/2/2022 20:02:11 UDPClient Error No connection could be made because the target machine actively refused it
11/2/2022 20:02:11 UDPClient Error An existing connection was forcibly closed by the remote host
11/2/2022 20:02:11 ClientUI Info Connect status: Connecting
11/2/2022 20:02:12 UDPClient Error No connection could be made because the target machine actively refused it
11/2/2022 20:02:12 UDPClient Error An existing connection was forcibly closed by the remote host
11/2/2022 20:02:12 UDPClient Error No connection could be made because the target machine actively refused it
11/2/2022 20:02:12 UDPClient Error An existing connection was forcibly closed by the remote host
11/2/2022 20:02:13 UDPClient Error No connection could be made because the target machine actively refused it
11/2/2022 20:02:13 UDPClient Error An existing connection was forcibly closed by the remote host
11/2/2022 20:02:15 UDPClient Error No connection could be made because the target machine actively refused it
11/2/2022 20:02:15 UDPClient Error No connection could be made because the target machine actively refused it
11/2/2022 20:02:16 ClientUI Info Connect status: Disconnected
11/2/2022 20:02:16 ClientUI Info Initiating connection: 127.0.0.1:9987
11/2/2022 20:02:16 UDPClient Error No connection could be made because the target machine actively refused it
11/2/2022 20:02:16 ClientUI Info Connect status: Connecting
11/2/2022 20:02:16 UDPClient Error An existing connection was forcibly closed by the remote host
11/2/2022 20:02:17 PktHandler Info Cleaning up connection because of 5 resends of COMMAND packet
11/2/2022 20:02:17 ClientUI Info Connect status: Disconnected
11/2/2022 20:02:17 ClientUI Info Failed to connect to server, want autoreconnect = 0

Means your computer denies the connection.

And check that server is running and then the server log.

1 Like

What does it mean for the computer to deny connection?

How do I check if the server is running?

There are some possible reasons for that:

  • The server is running but that port is blocked by Windows Firewall or other firewall. You can enable the program to go through firewall in the Inbound list.
  • There is a security program on your PC, i.e a Internet Security or Antivirus that blocks several ports on your PC.

I already tried that, unfortunately it didn’t work

Read your server log.

1 Like
twitch instagram twitter facebook