short and nice tutorial java library tästä oppaasta https://docs.oracle.com/javase/tutorial/networking/sockets/ this http://docs.oracle.com/javase/tutorial/networking/sockets/ Sockets Java Sockets tästä oppaasta socket socket http://docs.oracle.com/javase/tutorial/networking/sockets/