Hello everyone!
I ran into a problem yet again, and for the life of me I can not figure out how to solve it.
What I'm trying to do now is set up a server-client communication using udp, but I get this message all the time: Exception in
thread "main" java.net.BindException: Address already in use: bind
This is what my server code looks like:
And this is what my client code looks like:
So by running the server code first, and the client code after, I should get the message "Hello" on the console, but I just get an error message.
I've read that this error message means that the particular port is already in use, but I've tried a hundred other ports, and nothing seems to work. Few days ago, I had no problem with this, and the codes above are exactly how my professor's codes look like so I really don't know what goes wrong..
Thank you for your help in advance.