When I was playing with the FileTransfer tutorial , I got the following exception:
"java.net.BindException: Address already in use"
(It happened because I ran two services that listened to the same port)
And I wondered, because the port we use is written in code, can't another application already use it?
And if so, is there anything to do programmatically.
And how can one check if the port is free before trying to connect to it?
"java.net.BindException: Address already in use"
(It happened because I ran two services that listened to the same port)
And I wondered, because the port we use is written in code, can't another application already use it?
And if so, is there anything to do programmatically.
And how can one check if the port is free before trying to connect to it?