I am messing around with creating a TCP Forward Proxy for my PS4 and as I began programming I came across an issue. I wondered how the proxy knew the IP of the server the client originally wished to connect to. How could the server find out the destination that the data was originally meant for?I created an empty function to return the address of the target and the message intended for it.
Here’s my code so far,
The function getTargetInfo is the function I want to use to get the address of the target.
All help is appreciated thanks!