java.net.BindException: Cannot assign requested address: Cannot bind
843790Jul 31 2009 — edited Aug 1 2009Hello everybody,
While binding socket with a specific address I am getting error as "java.net.BindException: Cannot assign requested address: Cannot bind" .I did not find any solution.So any body there who know how to solve this error.
Below is the code where I am getting exception.
InetAddress address = InetAddress.getByName("172.18.192.163");
DatagramSocket socket = new DatagramSocket(2537,address);