Friday, November 27, 2009


This moderately complex how-to applies when we have no access to: e.g.:
ping - returns 100% packet loss and the user wants to use its services.

Sopcast is well known p2p internet tv platform. See . is the tracker which finds peers and makes sopcast network function normally.

1. tsocks - available for debian and ubuntu , probably every distro may have it.
2. ssh client (usually typing ssh in terminal is enough)
3. shell (ssh) access to a pc from whose internet we can freely ping :)
Step 3 seems the toughest but you ask a friend to give you ssh access to watch some sport event on sopcast.
Actual steps for making sopcast work even when we cannot ping :

1. Run in terminal: ssh -D 8000

Please note -D 8000 which is important - it leaves port 8000 on localhost ( open and bound to - our ssh remote example server. That should be a kinda ssh tunnel :)

2. Run in terminal: sudo vi /etc/tsocks.conf - edit the end of file where things look like:
server =
# Server type defaults to 4 so we need to specify it as 5 for this one
server_type = 5
# The port defaults to 1080 but I've stated it here for clarity
server_port = 8000
# 8000 is the port we set earlier - if you set another , edit accordingly , remains.

3. Export some command line variables (in terminal) borrowed from the tor's torrify howto in their wiki:

export http_proxy HTTP_PROXY
Pay attention to the port 8000 - my example started with it and I stick to it :)

5. Start sopcast with that weird command line :

tsocks sp-sc sop:// 8900 8200

tsocks invokes sp-sc loading this sopcast address sop:// which is the address of discovery channel in sopcast.
If you need more sopcast addresses try to figure them out here:
8900 is localport - I chose that number randomly , you may choose freely here
8200 is the port where the stream on our pc will be , mplayer or vlc will need it, also possible to put any port you like.

5. Finally use mplayer or vlc to watch the local stream that sp-sc produces using that command.


In conclusion I might add that if you put a little imagination after understanding this example it should be possible to use sopcast over tor , although I find that unethical and slow , never tried it. But if you lack the ssh access mentioned in the 3rd prerequisite - tor would be your last resort.