Network interface listener for java