vimargo78
vimargo78

Reputation: 3

How to establish a connection between two computers wirelessly?

Maybe is my question a little bit weird, but I am looking for an answer since couple days. The only thing what I found were sockets and asyncio(dont really know what it is) , but with sockets you can establish a connection just in your localhost. Is there any otherways to creat a connection between two quite different pcs or between a client and server wireless.

If you have any ideas just write, maybe it could be helpful. As a beginner in python, I would be happy if you guys could show me some way to find easy tutorials (maybe some websides) and important things to learn. So everything could be helpful, I am just curious. :)

Upvotes: 0

Views: 69

Answers (3)

snus74
snus74

Reputation: 451

You can create a server / client pair, through executables running on both PCs. TCP and UDP sockets can be used to communicate outside 'localhost'. You can do this rather easily in many programming languages like C, C#, python amongst others.

Upvotes: 1

Redhwan
Redhwan

Reputation: 967

You need to install ros library form here for example if you have Ubuntu 16.04.

after that it is very easy to use those lines

We used this method with robots.

Upvotes: 0

Stephan
Stephan

Reputation: 155

what you can do is create two seperate python files: client.py and server.py The client.py will be trying making the connection. the server.py will be trying to receive that connection. You mentioned you weren't familiar with socket. Socket is a low-level networking interface when you import the library socket to a file, you are able to make system calls between different computers to interact with each other.

Upvotes: 0

Related Questions