modify socket for wifi