Set config.server_port and config.rpc_url (lines 26 and 28), and it's ready to go.
I wrote this only for my own testing purposes, so it is to be expected to behave accordingly. If you need it for something critical, test it thoroughly and make sure you understand the code before using it.