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

TCP socket can not be opened localhost #3708

Closed
RIAEvangelist opened this issue Jul 24, 2015 · 2 comments
Closed

TCP socket can not be opened localhost #3708

RIAEvangelist opened this issue Jul 24, 2015 · 2 comments
Labels

Comments

@RIAEvangelist
Copy link

due to io.js integration

If the client machine is not connected to a network, TCP sockets do not work.

An example is to install node-ipc npm install node-ipc

then run the basic TCP server and clients with network connection and without.

tested using iojs install on windows 7 x32
works with network connection
can not connect without network connection even on localhost

tested using nw.js with both iojs and nodejs install on windows 7 x32
nw.js like atom uses io.js on its back end.
works with network connection
can not connect without network connection even on localhost

referenced here in the node-ipc module RIAEvangelist/node-ipc#32
and here on atom electron electron/electron#2299
and here on io.js nodejs/node/issues/2237

figured I would share the fact that this bug exsits incase anyone else runs into this issue.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Christywl
Copy link
Contributor

Seem this works well on my Windows 8 with nwjs-sdk-v0.22.3.

  1. install node-ipc
  2. start server: node example\TCPSocket\basic\world-server.js
  3. start the client with nwjs(with or without PC internet connection)

Result: could receive and get a message "hello world!"

@Christywl
Copy link
Contributor

close until there is more information.

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

No branches or pull requests

2 participants