InstantWebP2P / nodejs-httpp

Run HTTP over UDP with Node.js
Other
145 stars 25 forks source link

Wiki example not working on Mac #5

Closed hrehman200 closed 11 years ago

hrehman200 commented 11 years ago

The first wiki example echo_srv.js is not running on Mac. I get the following error when I give the following command on Terminal:

node echo_srv.js

events.js:71 throw arguments[1]; // Unhandled 'error' event ^ Error: listen ENOTSOCK at errnoException (udt.js:826:11) at Server._listen2 (udt.js:1076:19) at listen (udt.js:1120:10) at Server.listen (udt.js:1169:5) at Object. (/Users/Admin/Documents/node_workspace/server.js:6:6) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.runMain (module.js:492:10)

InstantWebP2P commented 11 years ago

please try latest code. it works well on my machine.

one thing is that you need to allow osx accept incoming connection.