You will need to use the server anyway. Even if you can specify an IP address and configure JavaScript to establish a connection to the computer using AJAX / JSON / JSONP, there must be some service functions on the other computer to answer the call, then neither your browser nor JavaScript have a handle.
For direct communication between a computer and a computer, you need to delve into serious client-side programming, for example, using Java, C ++ / C #, the .NET platform, or something similar.
source share