开发者

How to connect to wifi devices using Java? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 1 year ago.

Improve this question 开发者_如何学Go

How to establish connection in Java between devices within wifi range?


To establish a connection between two devices over a network (WiFi, cable, etc...) you need to write 2 pieces of software:

1) A server: which waits for connections

2) A client: which initiates a connection to the server

Once the client initiates a TCP connection then the devices are connected and you can send data and messages between them.

Here: Java Sockets

Here's a COMPLETE step by step tutorial on how to write a chat application: Client/Server Pair

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜