Factor out the thread that listens to and parses indexnode advert packets.
Make indexnode advert packet listening port configurable.
de-dupe code that receives advert packets from the socket.
Factor out socket getting.
Support for closing down the indexnode listening thread.