通过套接字连接到远程系统 [英] Connect to remote system through socket

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

问题描述

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



<我已经创建了一个服务器套接字并正在侦听port的连接。我可以从我的客户端程序连接到该套接字,该客户端程序与服务器不在同一局域网中。



提前致谢..

解决方案

http://www.oracle.com/technetwork/java/socket-140484.html 提供连接到服务器和客户端的示例插座。


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.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆