This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes java.net.BindException: Address already in use Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "java.net.BindException: Address already in use" Watch "java.net.BindException: Address already in use" New topic
Author

java.net.BindException: Address already in use

Bharath Bolisetty
Greenhorn

Joined: Sep 30, 2008
Posts: 2
Hi all This is Bharath. I am getting "java.net.BindException: Address already in use" while trying to conncet to FTP, I am using org.apache.commons API for connecting to FTP ,transferring files and for disconnection, I am getting this error only in one server where my application is deployed and other servers where the same application deployed this error is not coming.

Can any one help me resolving this issue.

Thanks In Advance,
Bharath
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

As the error message suggests, the port you are using to listen will be in use by some other process. (You can not listen on the same port from two different processes)
On linux, you can do a netstat to find out which process is using the port in question.


apigee, a better way to API!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.net.BindException: Address already in use
 
Similar Threads
java.net.BindException: Address already in use
java.net.BindException
How Tomcat Works: connection pooling in tomcat
java.net.BindException: Address already in use
Help with Tomcat 4.0.4