Discuss Scratch

-penandpaper-
Scratcher
100+ posts

Is there a way to do a simple peer-to-peer JS chat?

MegaApuTurkUltra wrote:

TheUltimatum wrote:

MegaApuTurkUltra wrote:

BookOwl wrote:

“Is there a way to do a simple peer-to-peer chat in {insert any language name here}?”
No
In hypothetical MATU language, you can do
eseyP2PChat()
I would call that pretty simple
It doesn't have
eseyMultiplaer()
No support!
but it does have
eseyMultilayer()
what about
eseyWebpaig()
??

Last edited by -penandpaper- (July 27, 2017 11:18:26)


there's no place like index

why do Java programmers wear glasses? because they can't c#
ninjagolloyd
Scratcher
500+ posts

Is there a way to do a simple peer-to-peer JS chat?

-penandpaper- wrote:

MegaApuTurkUltra wrote:

TheUltimatum wrote:

MegaApuTurkUltra wrote:

BookOwl wrote:

“Is there a way to do a simple peer-to-peer chat in {insert any language name here}?”
No
In hypothetical MATU language, you can do
eseyP2PChat()
I would call that pretty simple
It doesn't have
eseyMultiplaer()
No support!
but it does have
eseyMultilayer()
what about
eseyWebpaij()
??
ftfy

bean
DatOneLefty
Scratcher
1000+ posts

Is there a way to do a simple peer-to-peer JS chat?

simple “p2p”:
no
P2P: with mai hax:
How to:
  1. download https://github.com/DatOneLefty/SecureChat/
  2. modify the client (for the other person) to redirect your IP
  3. port foward that port
  4. modifiy another client to reirect to localhost:
  5. run the server
  6. run the clients
  7. make sure you enter the password correctly
done! its a
eseyP2PChat()


Scratch data available at ScratchDB (Status)

Posts: bf97b44a7fbd33db070f6ade2b7dc549 (btw i use arch)
infinitytec
Scratcher
1000+ posts

Is there a way to do a simple peer-to-peer JS chat?

DatOneLefty wrote:

simple “p2p”:
no
P2P: with mai hax:
How to:
  1. download https://github.com/DatOneLefty/SecureChat/
  2. modify the client (for the other person) to redirect your IP
  3. port foward that port
  4. modifiy another client to reirect to localhost:
  5. run the server
  6. run the clients
  7. make sure you enter the password correctly
done! its a
eseyP2PChat()
So can I do this on a network entirely independent of the Internet?


Not here much, but sometimes I lurk.
God has a plan. He has a plan for everything, and everyone.
Jonathan50
Scratcher
1000+ posts

Is there a way to do a simple peer-to-peer JS chat?

That's still server<—>client

Last edited by Jonathan50 (July 28, 2017 23:05:01)


Not yet a Knight of the Mu Calculus.
DatOneLefty
Scratcher
1000+ posts

Is there a way to do a simple peer-to-peer JS chat?

infinitytec wrote:

DatOneLefty wrote:

simple “p2p”:
no
P2P: with mai hax:
How to:
  1. download https://github.com/DatOneLefty/SecureChat/
  2. modify the client (for the other person) to redirect your IP
  3. port foward that port
  4. modifiy another client to reirect to localhost:
  5. run the server
  6. run the clients
  7. make sure you enter the password correctly
done! its a
eseyP2PChat()
So can I do this on a network entirely independent of the Internet?
do you want a program that does everything locally? If so, i would write that so i could use it in school (not for cheating, but to mai friends that are elsewhere in the school)


Scratch data available at ScratchDB (Status)

Posts: bf97b44a7fbd33db070f6ade2b7dc549 (btw i use arch)
infinitytec
Scratcher
1000+ posts

Is there a way to do a simple peer-to-peer JS chat?

DatOneLefty wrote:

infinitytec wrote:

DatOneLefty wrote:

simple “p2p”:
no
P2P: with mai hax:
How to:
  1. download https://github.com/DatOneLefty/SecureChat/
  2. modify the client (for the other person) to redirect your IP
  3. port foward that port
  4. modifiy another client to reirect to localhost:
  5. run the server
  6. run the clients
  7. make sure you enter the password correctly
done! its a
eseyP2PChat()
So can I do this on a network entirely independent of the Internet?
do you want a program that does everything locally? If so, i would write that so i could use it in school (not for cheating, but to mai friends that are elsewhere in the school)
Yep. I'm just trying to figure out an easy way to have a chat site on a small home network I want to build.


Not here much, but sometimes I lurk.
God has a plan. He has a plan for everything, and everyone.
DatOneLefty
Scratcher
1000+ posts

Is there a way to do a simple peer-to-peer JS chat?

infinitytec wrote:

DatOneLefty wrote:

infinitytec wrote:

DatOneLefty wrote:

simple “p2p”:
no
P2P: with mai hax:
How to:
  1. download https://github.com/DatOneLefty/SecureChat/
  2. modify the client (for the other person) to redirect your IP
  3. port foward that port
  4. modifiy another client to reirect to localhost:
  5. run the server
  6. run the clients
  7. make sure you enter the password correctly
done! its a
eseyP2PChat()
So can I do this on a network entirely independent of the Internet?
do you want a program that does everything locally? If so, i would write that so i could use it in school (not for cheating, but to mai friends that are elsewhere in the school)
Yep. I'm just trying to figure out an easy way to have a chat site on a small home network I want to build.
welp. time to remake an AES secured chat by making it P2P, ill make it install from a simple shell script getting stuff from the projects.lefty.cf system

How it'll work:
On the start, itll ask Create Room or Join Room, if you hit create, itll start a server in the background (all still running on the same script so no one will notice) and then itll join itself, and then someone can connect if they choose to join the room

Is this ok?


Scratch data available at ScratchDB (Status)

Posts: bf97b44a7fbd33db070f6ade2b7dc549 (btw i use arch)
infinitytec
Scratcher
1000+ posts

Is there a way to do a simple peer-to-peer JS chat?

DatOneLefty wrote:

infinitytec wrote:

DatOneLefty wrote:

infinitytec wrote:

DatOneLefty wrote:

simple “p2p”:
no
P2P: with mai hax:
How to:
  1. download https://github.com/DatOneLefty/SecureChat/
  2. modify the client (for the other person) to redirect your IP
  3. port foward that port
  4. modifiy another client to reirect to localhost:
  5. run the server
  6. run the clients
  7. make sure you enter the password correctly
done! its a
eseyP2PChat()
So can I do this on a network entirely independent of the Internet?
do you want a program that does everything locally? If so, i would write that so i could use it in school (not for cheating, but to mai friends that are elsewhere in the school)
Yep. I'm just trying to figure out an easy way to have a chat site on a small home network I want to build.
welp. time to remake an AES secured chat by making it P2P, ill make it install from a simple shell script getting stuff from the projects.lefty.cf system

How it'll work:
On the start, itll ask Create Room or Join Room, if you hit create, itll start a server in the background (all still running on the same script so no one will notice) and then itll join itself, and then someone can connect if they choose to join the room

Is this ok?

Sure! I won't be able to set it up for 2-3 weeks probably, so take your time.
Thanks! I'll probably have more questions then.


Not here much, but sometimes I lurk.
God has a plan. He has a plan for everything, and everyone.
DatOneLefty
Scratcher
1000+ posts

Is there a way to do a simple peer-to-peer JS chat?

infinitytec wrote:

DatOneLefty wrote:

infinitytec wrote:

DatOneLefty wrote:

infinitytec wrote:

DatOneLefty wrote:

simple “p2p”:
no
P2P: with mai hax:
How to:
  1. download https://github.com/DatOneLefty/SecureChat/
  2. modify the client (for the other person) to redirect your IP
  3. port foward that port
  4. modifiy another client to reirect to localhost:
  5. run the server
  6. run the clients
  7. make sure you enter the password correctly
done! its a
eseyP2PChat()
So can I do this on a network entirely independent of the Internet?
do you want a program that does everything locally? If so, i would write that so i could use it in school (not for cheating, but to mai friends that are elsewhere in the school)
Yep. I'm just trying to figure out an easy way to have a chat site on a small home network I want to build.
welp. time to remake an AES secured chat by making it P2P, ill make it install from a simple shell script getting stuff from the projects.lefty.cf system

How it'll work:
On the start, itll ask Create Room or Join Room, if you hit create, itll start a server in the background (all still running on the same script so no one will notice) and then itll join itself, and then someone can connect if they choose to join the room

Is this ok?

Sure! I won't be able to set it up for 2-3 weeks probably, so take your time.
Thanks! I'll probably have more questions then.
this program: me making https://github.com/DatOneLefty/SecureChat/ work off of one file. gg


Scratch data available at ScratchDB (Status)

Posts: bf97b44a7fbd33db070f6ade2b7dc549 (btw i use arch)
DatOneLefty
Scratcher
1000+ posts

Is there a way to do a simple peer-to-peer JS chat?

test and attempt to use

(there are bugs with how the input looks, but it still works properly)
curl https://projects.lefty.cf/eseyP2PChat/install.sh > install.sh; chmod +x install.sh; ./install.sh;


Scratch data available at ScratchDB (Status)

Posts: bf97b44a7fbd33db070f6ade2b7dc549 (btw i use arch)
Wettining
Scratcher
500+ posts

Is there a way to do a simple peer-to-peer JS chat?

Wait if you just wanted it local networked why don't you use batch script or power shell (ha apple products)
You could literally make on in less than 50 lines
TheUltimatum
Scratcher
1000+ posts

Is there a way to do a simple peer-to-peer JS chat?

Wettining wrote:

Wait if you just wanted it local networked why don't you use batch script or power shell (ha apple products)
You could literally make on in less than 50 lines
You mean with net send?
infinitytec
Scratcher
1000+ posts

Is there a way to do a simple peer-to-peer JS chat?

TheUltimatum wrote:

Wettining wrote:

Wait if you just wanted it local networked why don't you use batch script or power shell (ha apple products)
You could literally make on in less than 50 lines
You mean with net send?
Well, I want it to run on all devices.
I'll most likely host with a Pi.


Not here much, but sometimes I lurk.
God has a plan. He has a plan for everything, and everyone.
TheUltimatum
Scratcher
1000+ posts

Is there a way to do a simple peer-to-peer JS chat?

infinitytec wrote:

TheUltimatum wrote:

Wettining wrote:

Wait if you just wanted it local networked why don't you use batch script or power shell (ha apple products)
You could literally make on in less than 50 lines
You mean with net send?
Well, I want it to run on all devices.
I'll most likely host with a Pi.
netcat is your friend my friend.
Jonathan50
Scratcher
1000+ posts

Is there a way to do a simple peer-to-peer JS chat?

DatOneLefty wrote:

test and attempt to use

(there are bugs with how the input looks, but it still works properly)
curl https://projects.lefty.cf/eseyP2PChat/install.sh > install.sh; chmod +x install.sh; ./install.sh;
You can just do
curl https://projects.lefty.cf/eseyP2PChat/install.sh | /bin/sh

Not yet a Knight of the Mu Calculus.
DatOneLefty
Scratcher
1000+ posts

Is there a way to do a simple peer-to-peer JS chat?

infinitytec wrote:

TheUltimatum wrote:

Wettining wrote:

Wait if you just wanted it local networked why don't you use batch script or power shell (ha apple products)
You could literally make on in less than 50 lines
You mean with net send?
Well, I want it to run on all devices.
I'll most likely host with a Pi.
as long as the pi can run node and npm, it will run mine


Scratch data available at ScratchDB (Status)

Posts: bf97b44a7fbd33db070f6ade2b7dc549 (btw i use arch)

Powered by DjangoBB