Report this

What is the reason for this report?

Floating IP not working with shadowsocks-go

Posted on May 11, 2018

I am running shadowsocks-go, and it works perfectly fine with the droplet’s own IPv4 address (e.g. 1.1.1.1). When I try to access the shadowsocks server using the floating IP address (e.g. 2.2.2.2), it fails with the following error

2018/05/11 06:48:37 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:37 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:38 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:38 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:39 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:39 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:40 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:40 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:41 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:42 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused

How can I use the Floating IP address correctly?



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.

Do you have your daemon set up to listen on the anchor IP assigned internally on your droplet instead of the public Floating IP? Your droplet will never see an interface with the public floating IP as all traffic to this IP will be routed over the private network to your droplet.

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.