allow users to specify their main ip (closes #19)