Monday, August 29, 2011

Running dradis server in any port and ip address on backtrack 5

 

By default dradis server run on localhost. To run it in any interface following helps available in http://dradisframework.org/FAQ.html#q4. But its not works for me.

By default the server starts in 127.0.0.1:3004. How can I make it listen on a different interface/port number?

Port number can be changed using the -p parameter. For instance to listen on port 80:

rails server -p 80

The interface can be changed using the -b parameter. To listen on ALL (dangerous!) interfaces do:

rails server -b 0.0.0.0

I’m try couple of way and can’t make it work. get following error

ruby ./script/rails server -b 0.0.0.0 -p 3004
./script/rails:5:in `require': no such file to load -- rails/commands/server (LoadError)
from ./script/rails:5:in `<main>'

After a long time search internet i found a fix.I’m try

$./start.sh –h

But its not work, then a fixed has been found there git hut source.You just need to modify start.sh following way

-bundle exec rails server webrick

+bundle exec rails server webrick $*

After that you have $./start.sh –h cool help.

Just type ./start.sh –b <ip> Smile will work.

Hope this save some one time.

0 comments: