I've been searching for a while but can't figure it out. Is there a way to do this ?
Tor is socks5 proxy not normal proxy and it can work with casperjs , but you have to open tor first and make sure connection to tor network is done
Then from command line use:
casperjs --proxy=127.0.0.1:9150 --proxy-type=socks5 test.js
If you closed tor application it's will lost the socks connection
Related
[ FEDORA 19 ]
I am trying to configure mozilla firefox to use tor network.
I downloaded tor client, it seems to run and be active on port 9050. But proxy server in firefox rejects connection.
Any ideas ? :C I am new to all this.
Here is screenshot of my screen and terminal output:
screen CLICK
How do i check if the selenium server is running using bash? I want to make sure the server has been started up and running? Maybe check if selenium is running on port 4444? How can I do using bash?
You can use the following URL to check the status:
http://localhost:4444/wd/hub/status
You can do so by hitting the following URL:
"http://SELENIUM_SERVER_IP:4444/selenium-server/driver/?cmd=getLogMessages"
Use bash to hit that and it should return OK if selenium is up and running and an exception otherwise.
I want to listen to the online radio "tunein.com" via terminal, but there is a limitation: the website is blocked on my network, so I have to use proxy to access it.
I've set up a SOCKS 5 proxy for this purpose, but I do not know how to use it from the command line.
I tried MPlayer in my terminal, but I do not know how to enable a SOCKS proxy;there is no setting like socks_proxy=localhost:1080
This works with chainproxy on Firefox, but that requires a GUI
This works with Google Chrome, but that requires a GUI
How do I use a command-line program like MPlayer to use my SOCKS proxy?
I did not find anything about socks proxy support in the documentation of mplayer.
But you can use curl to access your socks proxy and pipe the audio stream into mplayer.
The following command line plays a radio stream through a local socks5 proxy listening on port 1080:
curl --socks5 localhost:1080 http://ibizaglobalradio.streaming-pro.com:8024 | mplayer -quiet -cache 1024 -
You might experiment a bit with the cache size or not need to use the cache at all.
You can use tsocks, which is a program to start other programs using a socks proxy server.
For example use this to listen to a playlist with mplayer:
tsocks mplayer -playlist http://bassdrive.com/bassdrive.m3u
The socks server I use is on port 5000 on my localhost. Therefore I’ve put the following in my /etc/tsocks.conf
server = localhost
# 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 = 5000
I want to test Desktop application with Grinder. My application is multiple client/server app. I must use TCPProxy and remotehost options. But I couldn't. Please guide me.
I have solved this. if we connect a remote host and if we use proxy, we must set proxy:
Open cmd
cd c:\grinder
C:\grinder>java net.grinder.TCPProxy -remotehost myremotehost -remoteport myremoteport -console>test.py
and recording process
When I try to run server(rc) in command prompt it is saying it is already used. So, I run the server in 5555 and changed the same in script. However, it still shows
WARN - Failed to start: SocketListener0#0.0.0.0:4444
Have you tried to stop the server using the below link?
http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer
Just open the above link in the browser you are using to run the tests.
After the opening the above link, the selenium server stops.
Then you can proceed with starting the server from port 4444.
Close the browser that is running on port 4444 and then restart the selenium server
I had the same problem,
type this instead
webdriver-manager --seleniumPort 4455 start
it will start it on port 4455 (you can try different numbers as well)