QUOTE(otikoti @ 19 Aug, 2008 - 02:57 AM)

So, there is this application which is used by several users who do inserts in the data base. What I need is a function ore something by means of which I can save automatically in the data base the IP of the computer which made the insertion. I have no code for this and I don't have the slightest idea how it is done, please help!
QUOTE(otikoti @ 19 Aug, 2008 - 02:57 AM)

So, there is this application which is used by several users who do inserts in the data base. What I need is a function ore something by means of which I can save automatically in the data base the IP of the computer which made the insertion. I have no code for this and I don't have the slightest idea how it is done, please help!
I want to notice that I'm using Visual Studio 2003, and it gives me the message that the func GetHostEntry is not declared. I want to point out too that I don't need the IP of the localhost which I know is 127.0.0.1, I want the IP that the computer has in the LAN.
Thnx!