code: def _make_socket(cls, ip, port):
      
      bound_socket = bind_sockets(port, address=ip)[0]
      ip, port = bound_socket.getsockname()
  
      if not ip or ip == '0.0.0.0':
        ip = socket.gethostbyname(socket.gethostname())
  
      return bound_socket, ip, port
docs: Bind to a new socket.
  
      If LIBPROCESS_PORT or LIBPROCESS_IP are configured in the environment,
      these will be used for socket connectivity.