Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.net.BindException: Cannot assign requested address: Cannot bind

843790Jul 31 2009 — edited Aug 1 2009
Hello 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);
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2009
Added on Jul 31 2009
16 comments
2,559 views