To Increase authentication security, I want only users who log in from a certain IP address to be be authenticated. As PHP (or any server) cannot reliably read IP address of a machine connected to a LAN, then the way to determine the real IP address is a Java Applet that opens a socket to the originating server, then asks socket what local IP address is being used.
So, Java Applet and its PHP code is needed to:
1) PHP script downloads Java Applet, which then opens a socket to server using hard coded address of server, so that it will not run on any other server.
2) Applet gets local machine IP address from socket.
3) Applet Requests same PHP script in browser window, with that local IP address to PHP script as a Posted variable.
4) PHP script compares retrieved IP address to a stored IP address. If they match then continue, else exit.
I require the PHP script, the Java Source code, any dependent files and the compiled class file.
23 freelancers are bidding on average £188 for this job
Hello , I have figured out how to implement most of the parts . Can you tell me whether you want the IP address of the client in the LAN or its IP address on internet so that i'll finish it .