Fixed errors and now packets send. Need to fix up the getopt as well as auto discover ip