Packet monitoring

I'm trying to get the source and destination address of ip packets in java for the development of my network monitoring tool...Please help
[153 byte] By [dhivisha] at [2007-10-2 11:49:19]
# 1
Socket.getInetAddress() and Socket.getLocalAddress()
ghstarka at 2007-7-13 6:21:21 > top of Java-index,Security,Other Security APIs, Tools, and Issues...