Report this

What is the reason for this report?

How do I connect to the VPN using the Shadowsocks app?

Posted on October 29, 2018

I am in China wanting a reliable VPN option and I signed up for Digital Ocean and created a droplet, downloaded SS but now I’m stuck. I’m not a coder and I’m not sure what my next step is to configure the SS app. I tried putting the user ip and password that I got in the email into the SS app, but it doesn’t seem to work, thus exposing my profound ignorance. I don’t get an error message of any kind, it shows that the service is connected, but that there is 0 traffic. Can anyone give me a hand?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Firstly, it’s worth noting that Shadowsocks isn’t exactly a VPN, but a proxy, that’s often used to bypass censorship.

Before using Shadowsocks client, you need to set up Shadowsocks server on your DigitalOcean Droplet. The process usually involves the following steps:

  1. Create a Droplet on DigitalOcean: Looks like you have already completed this step.

  2. Connect to the Droplet and Install Shadowsocks: This step usually involves SSH-ing into the Droplet using a tool like Putty (on Windows) or the terminal (on macOS or Linux) and running the command to install Shadowsocks. You’ll use the IP address, username, and password provided by DigitalOcean to connect to the Droplet.

Here is the command to install Shadowsocks on a Ubuntu-based Droplet:

  1. sudo apt-get update
  2. sudo apt-get install -y python-pip
  3. pip install shadowsocks
  1. Configure Shadowsocks: After installing Shadowsocks, you need to create a configuration file for it.

Create a new file:

  1. sudo nano /etc/shadowsocks.json

Then enter a configuration like this:

{
    "server":"your_server_ip",
    "server_port":8000,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"your_password",
    "timeout":300,
    "method":"aes-256-cfb"
}

Make sure to replace “your_server_ip” with your Droplet’s IP address and “your_password” with a strong password of your choosing.

  1. Start the Shadowsocks server: Use the following command to start the Shadowsocks server:
  1. sudo ssserver -c /etc/shadowsocks.json -d start
  1. Set Shadowsocks to start at boot: This step is optional but recommended. It makes sure that the Shadowsocks server starts automatically if the Droplet is rebooted.
echo "ssserver -c /etc/shadowsocks.json -d start" >> /etc/rc.local

Now you should have the Shadowsocks server running on your DigitalOcean Droplet.

After setting up the server, you can now configure the Shadowsocks client. Here’s how:

  1. Download and install the Shadowsocks client: It looks like you’ve already completed this step.

  2. Configure the Shadowsocks client: Open the Shadowsocks client. In the server settings, enter the following information:

  • Server IP: Your Droplet’s IP
  • Server Port: The server port you used in the Shadowsocks configuration (8000 in the example above)
  • Password: The password you used in the Shadowsocks configuration
  • Encryption Method: The encryption method you used in the Shadowsocks configuration (aes-256-cfb in the example above)

Now you should be able to connect to your Shadowsocks server using the client and browse the internet freely. If you still experience issues, please make sure your firewall isn’t blocking the connection, and verify that you’ve entered the correct settings in both the server and client.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.