How to extract the IP address of a data packet and store it in the database?
5 pts.
0
Q:
How to extract the IP address of a data packet and store it in the database?
A client sends a data packet to the server machine, then how can the server extract the IP address of the data packet .Can you suggest a source code for this above query in JAVA?
After extracting the IP address how can the IP address be stored in the database, where other IP addresses of other data packets, extracted in a similar way, be stored.What can be the suitable JAVA source code for this above query?
ASKED: Jan 25 2009  5:25 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
75 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
is the server window, linux sun?

If it's a SUN server just use snoop. Type snoop at the command prompt and it will show you the packets as they pass through the server. Use grep to narrow things down a bit.

If it's a linux box use tcpdump at the command prompt

If it's a windows server use wireshark - install wireshark and run it.. you'll see all connection hitting the server. In the options of the packet capture set it to promiscuous mode
Last Answered: Jan 26 2009  3:17 PM GMT by Kutu   75 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0