Virtua Cop 2 predates online console play, so there's no official multiplayer mode to connect to.
What does exist is a community that keeps the game running on PC through emulated and lightly modified setups, and those groups sometimes arrange sessions where players connect directly. It's a hobbyist arrangement rather than a supported feature, so expect setup work and version-matching between players.
If you just want the arcade experience with a friend, local two-player on the same machine is far less hassle.