deriving socket path from URL