- Thu 19 July 2012
- GNU-linux
- Andraz Brodnik brodul
- #web, #dev, #cli
Sometimes I want do develop/deploy a "huge" project like RTD . First of all, I create a virtual mashine, then you start the development enviroment. But the development server only listens to request on 127.0.0.1:8080. And because I am lazy and don't want to read the docs, how to change the ip and the port of the development server. I use the 'socat hack'.
First I connect to the development mashine (with ssh). Then I run:
# socat TCP-LISTEN:80,fork TCP:localhost:8080 &
And now I can access the dev website just by writting the ip or hostname of the dev server.
But be careful other people can do that as well!