Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peer to peer networking? #154

Open
rog77 opened this issue Mar 13, 2020 · 4 comments
Open

Peer to peer networking? #154

rog77 opened this issue Mar 13, 2020 · 4 comments

Comments

@rog77
Copy link

rog77 commented Mar 13, 2020

Would it be possible to bypass the need for a constant connection to a private websockets server if one is trying to communicate between Jor1k clients, by implementing PeerJS?

@s-macke
Copy link
Owner

s-macke commented Mar 15, 2020

You can use peerJS to establish a connection between the different clients. However the connection is based on ethernet frames.
So you have to implement some services at some point. E. g. a DHCP Server to provide an IP address. Otherwise you have to chose some sort of random IP for each client. Also you have to implement some sort of switch for the ethernet frames based on the MAC address.
All this is possible, but not in a few lines of code.

@benjamincburns
Copy link
Collaborator

I agree with Sebastian, but with one small addition. It could be fairly easy if you only wish to network together two instances of jor1k. Simply swap ethernet frames between the two VM instances as if you'd connected the two with an ethernet crossover cable. This will only allow direct communication between the two machines, however. You'd likely need to configure them with static IPs as well.

@proxy-m
Copy link

proxy-m commented Dec 28, 2021

Related to:
#155 [Redirect web traffic on jor1k],
#198 [Use networking without the websocket proxy on v86],
#23 [Network support on v86],
#569 [Networking between two or more instances on v86].

@hello-smile6
Copy link

Related to: #155 [Redirect web traffic on jor1k], #198 [Use networking without the websocket proxy on v86], #23 [Network support on v86], #569 [Networking between two or more instances on v86].

Ooh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants