Thanks, It is working but connection count is only 8. I must have not port forwarded correctly.
Thanks for the bash script, my VPS hasn't crashed in ages. I will test how long it lasts before a crash to see if cron job is necessary.
Edit your config file in /.bitcoin/bitcoin.conf
add/edit the line:
maxconnections=x
x = how many to want to limit it to.. default is 8, if this option is not specified.
That's the outbound connection limit.
This is a VPS so I assume he has a public ipv4 address.
He'll end up with ~40 connections if other peers can connect.
Really? I was unaware it was for outbound only.
I could never get any more connections than 8 unless I changed it in the config. Simply port forwarding did not let me get anymore. I'll need to read up on that again sometime to be sure I guess.
Edit to add: directly from the wiki page "running bitcoind"
#maxconnections=
Let me correct myself a bit.
maxconnections is inbound and outbound, however it defaults to 125 not 8.