By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,467 Members | 1,308 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,467 IT Pros & Developers. It's quick & easy.

java.net.bindException: address already in use: connect

P: 1
Hi!

I am using:
Java 2 SDK 1.4.0 Standard Edition on Windows XP

I have one java client application and one gateway that is in C language runing on the same machine.
The server creates a ServerSocket and starts lisening for connections

The client creates a socket to the server.
while i running the client(java) program it gives the following error message.


java.net.BindException: Address already in use: connect
java.net.PlainSocketImpl.socketConnect(Native Method)
java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:295)
java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:161)
java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:148)
java.net.Socket.connect(Socket.java:425)
java.net.Socket.connect(Socket.java:375)
could please any one help me.
Mar 1 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.