I am trying to implement TFTP client using Java NIO. But it leads to error:
network error: Address already in use: bind
Code snippet is shared here.
Selector selector = Selector.open();
DatagramChannel channel = DatagramChannel.open();
InetSocketAddress isa = new InetSocketAddress("10.86.4.250",69);
channel.socket().bind(isa);
channel.configureBlocking(false);
As I am new to this networking concept, I couldn't understand the cause. Any help in resolving this issue is highly appreciated.