I executed ...
./leaserigproxy_linux 3333 PUT-YOUR-ID-HERE 0
and got this error message, using my actual generated ID on LeaseRig ...
--127.0.0.1:45669->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45670->rig connected
--127.0.0.1:45670->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45672->rig connected
--127.0.0.1:45672->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45673->rig connected
--127.0.0.1:45673->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45674->rig connected
ERROR: Failed to init socket
By any chance did you put pool 127.0.0.1:3333 into pools.conf file? If yes, then you created a infinite connecting loop which will eventually use all sockets and crash. 127.0.0.1:3333 should be used in your cgminer!
I'm getting the same problem. I'm running the proxy on a VM, and trying to direct my AntMiners to them. The pools.conf has one starting pool, which is not itself (It's slush's, to be exact). The Antminer only has one pool, which is IP:3333 of the proxy VM. They're on the same network, and can ping each other.
It sits there for a while, and as soon as I start CGMiner on the AntMiner, the proxy crashes.
Listening on 3333 for miners
Connecting to LeaseRig.net
Pool connection established: stratum.bitcoin.cz:3333
Connected to LeaseRig.net
Pool authorized: stratum.bitcoin.cz:3333
Authorized with LeaseRig.net
*Sits here for a while, and as soon as I connect a miner, the following lines all show up, and then it closes*--10.0.4.101:53767->rig connected
--10.0.4.101:53767->connecting to pool stratum.bitcoin.cz:3333
--10.0.4.101:53767->pool connection established
--10.0.4.101:53767->rig disconnected
--10.0.4.101:53768->rig connected
--10.0.4.101:53768->connecting to pool stratum.bitcoin.cz:3333
--10.0.4.101:53768->pool connection established
--10.0.4.101:53768->rig disconnected
--10.0.4.101:53769->rig connected
--10.0.4.101:53769->connecting to pool stratum.bitcoin.cz:3333
--10.0.4.101:53769->pool connection established
--10.0.4.101:53769->pool diff: 3
--10.0.4.101:53769->rig disconnected
--10.0.4.101:53770->rig connected
--10.0.4.101:53770->connecting to pool stratum.bitcoin.cz:3333
--10.0.4.101:53770->pool connection established
--10.0.4.101:53770->pool diff: 3