{"id":32,"date":"2015-03-13T16:28:18","date_gmt":"2015-03-13T08:28:18","guid":{"rendered":"http:\/\/woohuiren.me\/blog\/?p=32"},"modified":"2015-03-14T14:47:43","modified_gmt":"2015-03-14T06:47:43","slug":"shadowsocks-504-connect-to-youtube-com80-failed-socks-protocol-error","status":"publish","type":"post","link":"https:\/\/woohuiren.me\/blog\/shadowsocks-504-connect-to-youtube-com80-failed-socks-protocol-error\/","title":{"rendered":"Shadowsocks &#8211; 504 connect to youtube.com:80 failed: socks protocol error"},"content":{"rendered":"<p>Hello everyone,<\/p>\n<p>I am assuming you have encountered this error when using Shadowsocks and have stumbled upon this website upon Googling it. :)<\/p>\n<p>I have also faced this issue and spent countless hours trying to find out what went wrong.<\/p>\n<h3>Solution<\/h3>\n<p><strong>Step 1<\/strong>: Check your Shadowsocks server&#8217;s IPtables (if you&#8217;re running Fedora, check Firewalld too)<\/p>\n<p>Have you added an exception rule for IPtables? If not, you should run the following commands:<\/p>\n<blockquote><p><code>\/sbin\/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport SERVER_PORT_NUMBER\u00a0-j ACCEPT<\/code><\/p>\n<p><code>\/etc\/init.d\/iptables save<\/code><\/p>\n<p><code>\/etc\/init.d\/iptables restart<\/code><\/p><\/blockquote>\n<p>Replace SERVER_PORT_NUMBER with the port number of your Shadowsocks server.<\/p>\n<p>If you would like to save the hassle of doing so, you can simply turn off IPtables with the following commands :<\/p>\n<blockquote><p><code>service iptables stop<\/code><\/p>\n<p><code>chkconfig iptables off<\/code><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>By now it should be working, however, if you&#8217;re still facing this error, proceed to step 2<\/p>\n<p><strong>Step 2<\/strong>: Run Shadowsocks client as Administrator<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/woohuiren.me\/blog\/wp-content\/uploads\/2015\/03\/shadowsocks-run-as-admin.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/woohuiren.me\/blog\/wp-content\/uploads\/2015\/03\/shadowsocks-run-as-admin.png?resize=593%2C201&#038;ssl=1\" alt=\"shadowsocks-run-as-admin\" width=\"593\" height=\"201\" class=\"alignnone size-full wp-image-36\" srcset=\"https:\/\/i0.wp.com\/woohuiren.me\/blog\/wp-content\/uploads\/2015\/03\/shadowsocks-run-as-admin.png?w=593&amp;ssl=1 593w, https:\/\/i0.wp.com\/woohuiren.me\/blog\/wp-content\/uploads\/2015\/03\/shadowsocks-run-as-admin.png?resize=300%2C102&amp;ssl=1 300w\" sizes=\"(max-width: 593px) 85vw, 593px\" \/><\/a><\/p>\n<p>If you&#8217;re running windows, you need to always run Shadowsocks client as an administrator or else it will not work.<\/p>\n<p>&nbsp;<\/p>\n<p>If you&#8217;re still facing this issue, please let me know through the comments below.\u00a0Thank you and I hope that this has helped you a lot! :)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello everyone, I am assuming you have encountered this error when using Shadowsocks and have stumbled upon this website upon Googling it. :) I have also faced this issue and spent countless hours trying to find out what went wrong. Solution Step 1: Check your Shadowsocks server&#8217;s IPtables (if you&#8217;re running Fedora, check Firewalld too) &hellip; <a href=\"https:\/\/woohuiren.me\/blog\/shadowsocks-504-connect-to-youtube-com80-failed-socks-protocol-error\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Shadowsocks &#8211; 504 connect to youtube.com:80 failed: socks protocol error&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":33,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"image","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[2,4],"tags":[28,16,17,6],"class_list":["post-32","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-information-technology","category-it-softwares","tag-error-504","tag-proxy","tag-shadowsocks","tag-vpn","post_format-post-format-image"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/woohuiren.me\/blog\/wp-content\/uploads\/2015\/03\/shadowsocks-error.png?fit=1366%2C768&ssl=1","_links":{"self":[{"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/posts\/32"}],"collection":[{"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":4,"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"predecessor-version":[{"id":38,"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/posts\/32\/revisions\/38"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/media\/33"}],"wp:attachment":[{"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/woohuiren.me\/blog\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}