https://www.tutorialspoint.com/java/java_networking.htm
[ Java – Networking ]
The term network programming refers to writing programs that execute across multiple devices (computers), in which the devices are all connected to each other using a network.
The java.net package provides support for the two common network protocols −
cmd 명령어
: netstat -an ⇒ 몇 번 포트가 사용 중에 있는지 확인 가능