common ip/port argparser, port sms.py to argparse