Added masquerade feature to socket