944,134 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2741
  • Java RSS
Jul 30th, 2005
0

Ip Code Snipet and Logging

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
xerop is offline Offline
4 posts
since Jul 2005
Jul 30th, 2005
0

Re: Ip Code Snipet and Logging

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.
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004
Jul 30th, 2005
0

Re: Ip Code Snipet and Logging

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!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
xerop is offline Offline
4 posts
since Jul 2005
Jul 30th, 2005
0

Re: Ip Code Snipet and Logging

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.
Reputation Points: 17
Solved Threads: 5
Posting Whiz in Training
mmiikkee12 is offline Offline
274 posts
since Oct 2004
Jul 30th, 2005
0

Re: Ip Code Snipet and Logging

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
xerop is offline Offline
4 posts
since Jul 2005
Jul 30th, 2005
0

Re: Ip Code Snipet and Logging

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.
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Putting digits in an array one by one.
Next Thread in Java Forum Timeline: public pathroom problem (plz help)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC