Define host for different environments for socket connections. Refs #3