Ip Code Snipet and Logging

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2005
Posts: 4
Reputation: xerop is an unknown quantity at this point 
Solved Threads: 0
xerop xerop is offline Offline
Newbie Poster

Ip Code Snipet and Logging

 
0
  #1
Jul 30th, 2005
Hello I do not know java however, I know that with java you can log IP addresses. If someone could, would they please write a script that could be embeded into an html file. This sript should collect the IP address and store it in a file.

Thats all. Thank You!!!

If your wondering why, I have friends that call me and ask me to help them and I don't like having to tell them how to find their IP address (it takes too long). The IP is needed so I can connect to their computer and controll it via remote control software. If someone could do this I will be very greatful! This is not hacking my friends are aware that I am in their computer. And I can coonect only when they turn on the software on their end. So they have to be there.

~John
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Ip Code Snipet and Logging

 
0
  #2
Jul 30th, 2005
I think you want javascript. Java can do this, but it's not going to be some script you plug into an html document and it runs. You could use jsp or servlets to EASILY get their ip.


By the way, if you just need to find their ip, got to the command line and type in:

ipconfig


That will give you the ip address and plus some.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 4
Reputation: xerop is an unknown quantity at this point 
Solved Threads: 0
xerop xerop is offline Offline
Newbie Poster

Re: Ip Code Snipet and Logging

 
0
  #3
Jul 30th, 2005
yeah I knew about Ipconfig. I was just wondering if anyone could write a small snipet of code for me that would log someones to a log file... I never thought about the code being to different I thought you would just have to put some html tags around some code and that would do it. Realy thats all i need some code that I could put html tags around and so it does as I described.

If any one could do this for me I thank you!
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 274
Reputation: mmiikkee12 is an unknown quantity at this point 
Solved Threads: 5
mmiikkee12's Avatar
mmiikkee12 mmiikkee12 is offline Offline
Posting Whiz in Training

Re: Ip Code Snipet and Logging

 
0
  #4
Jul 30th, 2005
You may be able to find something at http://javascript.internet.com/user-details/
Too lazy to look right now :-)

EDIT: http://javascript.internet.com/user-...p-address.html
It doesn't log anything, but it will tell them their IP.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 4
Reputation: xerop is an unknown quantity at this point 
Solved Threads: 0
xerop xerop is offline Offline
Newbie Poster

Re: Ip Code Snipet and Logging

 
0
  #5
Jul 30th, 2005
Thank you that second link is perfect. I thank you. Now I just have to figure out how to save the IP to a log file.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Ip Code Snipet and Logging

 
0
  #6
Jul 30th, 2005
I hate to detour people away from the java forum, but if you posted in the javascript forum, you could probably find exactly what your looking for. Even though the names sound alike, javascript is completely different from java.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum


Views: 2202 | Replies: 5
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC