Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8620813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:40:15+00:00 2026-06-12T06:40:15+00:00

I have a basic node.js app that is designed to open up a connection

  • 0

I have a basic node.js app that is designed to open up a connection between two clients and echo the input of one to the other.

var net = require("net");
console.log("Relay Started");
var id = 0;
var Socket = [];
relay = net.createServer(function(socket) {
        socket.on('connect', function() {
                console.log('Connected');
                if(socket.id==null) {
                        socket.id = id;
                        Socket[id]=socket;
                        id++;
                }
        });
        socket.on('data', function(data) {
            data = data.toString()
            if (socket.id==0) {
                    Socket[1].write(data);
            } else if (socket.id==1) {
                    Socket[0].write(data);
            }
            console.log(socket);
            console.log(data.toString());
    });

})
relay.listen(process.env['app_port']||8080);

It works fine when run locally, however when I put it onto a Nodester development server, I am unable to connect by using telnet zapcs.nodester.com 18007 (it is hosted under the name zapcs, and the given port is 18007). The Relay Started is logged, but nothing after that, and no connection. Any ideas on why this would be?

~

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:40:17+00:00Added an answer on June 12, 2026 at 6:40 am

    you can not telnet zapcs.nodester.com 18007, you only can connect to zapcs.nodester.com:80 by http or websock, nodester will route your request to your app actual port (18007) on the host.

    And check this: http://www.slideshare.net/cmatthieu/nodester-architecture-overview-roadmap-9382423

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a basic Node.js app that I am trying to get off the
I have a basic.xsd and two other A.xsd and B.xsd . A.xsd and B.xsd
I'm using node, express and connect for a simple app and have basic HTTP
I have a very basic node script that starts up, serving up an html
I have a basic Node.js+socket.io app, and want to include coffee-script file. It was
I have a pretty basic REST call that is written using node / express
I have a basic web service that returns the following object as JSON: public
I m very new to Node.js and Socket.io. I have built a very basic
I have a basic node.js setup, but I think I'm missing something. My main.js
I'm working on handling file uploads using express.js and node, and have the basic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.