fixes getipaddress for 2dmesh