Hey folks.
I would like to know how you can redirect an external IP to localhost. Im trying to emulate the server for a simple program one of my friends coded in C++ (or something). It is basicly a login and register system, upon registering the program sends a HTTP request to the server (it requests a PHP file) with username & password parameters, if the username is not taken the server replies "1", if it is taken it replies "0".
I made a PHP file on my server with the same name, though it would only return "0".
So here is the deal, the program connects to a server that i dont have access to, nor do i have access to the program's source code and i can't change what IP the program connects to, so i will have to somehow forward the IP it connects to to my server's IP.
I would like to know how you can redirect an external IP to localhost. Im trying to emulate the server for a simple program one of my friends coded in C++ (or something). It is basicly a login and register system, upon registering the program sends a HTTP request to the server (it requests a PHP file) with username & password parameters, if the username is not taken the server replies "1", if it is taken it replies "0".
I made a PHP file on my server with the same name, though it would only return "0".
So here is the deal, the program connects to a server that i dont have access to, nor do i have access to the program's source code and i can't change what IP the program connects to, so i will have to somehow forward the IP it connects to to my server's IP.