通过套接字连接到远程系统

通过套接字连接到远程系统

本文介绍了通过套接字连接到远程系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过java套接字连接到与我不在同一本地区域的远程系统,任何人都可以共享一些示例代码或文档。





提前致谢..

解决方案

提供连接到服务器和客户端的示例插座。


Am trying to connect to a remote system which is not in the same local area as mine through java sockets, can anyone share some sample code or docs to do so.

I have created a server socket and is listening for connection at a port.how can i connect to that socket from my client program that is not in the same local area network as the server.

Thanks in advance..

解决方案

http://www.oracle.com/technetwork/java/socket-140484.html provides both server and client examples of connecting to a socket.

这篇关于通过套接字连接到远程系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 01:39