In LittleProxy, how to set proxy ip and port? The sample in their website :
HttpProxyServer server = DefaultHttpProxyServer.bootstrap() .withPort(8080) .start();
Looking at the source code you should be able to do something like
HttpProxyServer server = DefaultHttpProxyServer.bootstrap()
.withAddress(new InetSocketAddress("127.0.0.1", 8080)).start();