Hello, am new to the real programming but i have very much interest.
As a first real java project am trying to develop a P2P network application which can be used for chatting, but the problem is:
Should it load as a server.and if so how do i get it to listen for connections and read any incoming input stream, b'se when I try putting the server code in the GUI interface constructor, it keeps throwing the socketexception:socket not connected. I dont know how to listen before any client connects and yet get the input. Anyway, am just confused right now. Some one just bail me out.