Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8805021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:45:25+00:00 2026-06-14T01:45:25+00:00

What I am trying to accomplish: Get shadowsocks-node.js to run on heroku. shadowsocks-nodejs is

  • 0

What I am trying to accomplish: Get shadowsocks-node.js to run on heroku.

shadowsocks-nodejs is a lightweight tunnel proxy which can help you get through firewalls.

I got it to run locally with both processes on the same machine.
My next step was to deploy it to heroku and run server.js there and local.js locally on my machine. However, I can’t seem to get a connection going.

My problem: the connections seem to be refused by the server process.


node local.js outputs:

calculating ciphers
server listening at port 1080
server connected
concurrent connections: 1
remote connection refused
server connected
concurrent connections: 1
remote connection refused
server connected

and so on…

server.js outputs (via heroku logs):

012-10-27T20:39:57+00:00 app[web.1]: server connected
2012-10-27T20:39:57+00:00 app[web.1]: concurrent connections: 1
2012-10-27T20:39:57+00:00 app[web.1]: server disconnected
2012-10-27T20:39:57+00:00 app[web.1]: concurrent connections: 0
2012-10-27T20:42:02+00:00 app[web.1]: server connected
2012-10-27T20:42:02+00:00 app[web.1]: concurrent connections: 1
2012-10-27T20:42:02+00:00 app[web.1]: server disconnected

and so on.

Chrome gives back the error:

Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

(makes sense)


This is my config.json that is used by shadowsocks:

{
    "server":["https://damp-woodland-7539.herokuapp.com"],
    "server_port":58954,
    "local_port":1080,
    "password":"barfoo!",
    "timeout":60
}

I edited server.js to read (line 31):

//PORT = config.server_port;
PORT = process.env.PORT || 5000;

as advised for heroku apps.

And this is my package.json file:

{
  "name": "shadowsocks-nodejs",
  "scripts": {
    "start": "server.js"
  },
  "version": "0.0.1",
  "engines": {
    "node": "0.8.x"
  },
  "dependencies": {
    "fs": "*",
    "net": "*"
  }
}

This might be just a simple setup issue or some incorrect addresses. Would be great if someone of you could help me out.
Thanks a lot!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:45:26+00:00Added an answer on June 14, 2026 at 1:45 am

    shadowsocks-nodejs is incompatible with Heroku. It’s using raw sockets, while Heroku only provide HTTP access.

    You can deploy shadowsocks-nodejs on a VPS with all the freedom of using raw sockets, or use shadowsocks-dotcloud if you want a free proxy.


    EDIT:

    The reason why there is no shadowsocks-heroku is that Heroku does not have websocket support.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What I am trying to accomplish: HTTP GET the contents of a site (say
Im trying to accomplish something which may seem a bit convoluted but would be
Which I'm trying to accomplish is have two classes, a non generic and a
I'm trying to get to grips with Cocos2d by trying to accomplish simple things.
First of all here what i'm trying to accomplish: Get the sum of etp_product.price
What I am trying to accomplish is adding a GET method to my WCF
Hopefully I can explain what I am trying to accomplish. I have no problem
What I am trying to accomplish is to get the ID column from @temp2
Here's a scernerio that will get what I am trying to accomplish.... Say I
I am trying to create a PHP script which can request data, such as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.