Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use shadowsocks qt5 in ubuntu can not connect

Tags:

ubuntu

The log report like below:

Initialising ciphers...
RC4-MD5 (RC4-MD5) initialised.
Listen UDP socket state changed to QAbstractSocket::BoundState 
Running in local mode.
TCP server listen at port 1080
An invalid socket connection was rejected. Please make sure the connection type is SOCKS5.
An invalid socket connection was rejected. Please make sure the connection type is SOCKS5.
An invalid socket connection was rejected. Please make sure the connection type is SOCKS5.

How can I do?

like image 214
goddess1875 Avatar asked Feb 10 '23 13:02

goddess1875


2 Answers

I had the same issue. After seeing the log

An invalid socket connection was rejected. Please make sure the connection type is SOCKS5

I changed local server type from SOCKS5 to HTTP(S)

And it works.

Hope this is helpful

like image 158
Hohenheim Avatar answered Feb 12 '23 04:02

Hohenheim


I've tried using shadowsocks on my Ubuntu 16.04, which didn't work (didn't really connect to my shadowsocks server, but did not throw any errors).

Client worked on my Android, Mac OSX and Windows, but not on Ubuntu.

I realized it wasn't shadowsocks issue, rather it wasn't issue at all: just system settings.

Solution that immediately worked (sslocal client immediately connected after that) was:

Go to System Settings -> Network -> Network Proxy and set Socks Host to 127.0.0.1 and port 1080 (these are settings for local host and local port I had set in shadowsocks.json configuration file).

Here it is: enter image description here

Immediately after that I could see connection log on my server's shadowsocks log. When I tested my IP in Chrome, it was my server's IP, and I could open sites that are blocked from my location.

like image 35
Siniša Avatar answered Feb 12 '23 02:02

Siniša