shovon / node-rudp

Reliable UDP for Node.js
33 stars 14 forks source link

More specific working example #1

Open akaustel opened 10 years ago

akaustel commented 10 years ago

I have spent some hours trying to get this thing to work, without success. Tried to set up the file sharing example, and add some console.logs to understand where it goes wrong.

Here is my setup. And the output from the processes. Everyone is run on separate machines, but client and server are behind the same NAT.

Mediator

# node mediator.js -p 5000
Registered a0af11ac, from host 194.140.150.160

Server

# node app.js -m 194.142.159.165:5000 -f ~/Documents/test.txt
Requesting to register a0af11ac
Got request to talk to remote host at 194.140.150.160, 51036
Sending the file /home/akaustel/Documents/test.txt 1588 bytes (sending 1596 bytes)

Client

# node app.js -m 194.142.159.165:5000 -t a0af11ac
Requesting to talk to a0af11ac
Got request to talk to remote host at 194.140.150.160, 48317
Just waiting on a file.

I would be very happy to get some pointers to get this working!

hoffmabc commented 9 years ago

@akaustel did you get this working?

akaustel commented 9 years ago

@hoffmabc sorry to say, but no, I did not get it to work. Dealing with the same kind of problem? I might still need this, but currently working on other things.

mvayngrib commented 9 years ago

if you're still looking for examples, I've been using this in a p2p chat app: zlorp

shovon commented 9 years ago

@mvayngrib that's actually pretty cool.

shovon commented 9 years ago

@akaustel I'll take a look at what's the issue. Sorry it's taking so long.

mvayngrib commented 9 years ago

no worries. I hacked around the problems I had, https://github.com/shovon/node-rudp/compare/master...mvayngrib:master but I think you probably know a better way to do it

and thanks for making this!