Fix problem with ip of switch. Thanks to Vadim Pisarev. closes #2345