Is it the user IP different with internet IP?
If yes wat the different?
how can i get the user ip and internet IP?
Every Computer has got 2 IP adresses (or it seems like it has got 2).
One for the local network (which usually starts with 192.168, but it
doesn't have to) which is his "name" in the local network (It's the one
you called "user IP"). it's needed to tell a server which computer
wanted to have which file from which other computer or which computer
want's to do which action.
The second one is the "internet IP". If you take a closer look at it you
see that in a network every computer has got the same internet IP. This
means the IP doesn not really belong to a single computer but to the
server or router which is connected to the internet. If now a computer
asks for a file in the internet (this is what is done if a website if
you open a internet site) it first asks the server (or router). the
server now asks the "internet" (of couse it's not that simple, but it
doesn't matter now). It then get's the file. The only thing which is
visible in the internet is the internet IP of the server (or router)
because this is where the file has to be sent to. The server now
redirectes the file to the computer the request came from using its
"local IP".
So you have no way to get the local IP of the PC from the internet
because it isn't sent along with the request and only the network server
(or the router) knows it.
If only one PC is connected to a router (or if a PC is directly
connected to the internet) it's of course the only computer which uses
the same IP which means that in this case you can use the IP to identify
the user.
Just for your information: a computer which does not belong to a network
(which means it is either directly connected to the internet or has no
connection to it) still has a local IP: it's 172.0.0.1
HTH, jojo