I am doing game development, and have set up an TCP server for handling the server side of the game. I am trying to obtain the players IP serverside, and i currently use the net.Socket remoteAddress feature, but it gives ::ffff: before the IPv4, and i am only looking to get the pure IPv4. How can i properly obtain this?
I'm currently using the following code in the server software to obtain IP:
const connectedClientIP = socket.remoteAddress;