Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I am trying to make a simple chat app in which people will just send the message to everyone.
but I am not able to make it
These pictures will say you everything that I am doing.
Please correct me where I am wrong.
From node.js back-end code, start listening to the requests by -
server.listen(...);
And make sure that the server and the client ports are same(or port forwarding is there if different.).
And if using TCP protocol then that port should be open.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 days ago.
Improve this question
I use translation to talk to you because I got tired of searching a lot in Arabic explanations and did not find a solution. I have a chat site programmed with "node.js" with a mysql database and there is a security vulnerability that some users do (check element > control panel) that puts this code "socket.emit('broadcasting', {cmd: 'send'});" is restarting the entire site. I want a solution to this problem. Is there a way to prevent users from placing this code in (check element > console)or any other solution? Thank you.
I tried obfuscating the code but it didn't work
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have installed this package: https://www.npmjs.com/package/selection-popup
I was wondering how do I use it?
Getting your site viewable by remote users (people on the internet) isn't as simple as setting up an apache server. You'll also need a domain name (in your example, mydigitalplanner.net) from a domain registrar like GoDaddy. Once you have that, you'll need to add an A-record and point it to the external IP address for your server.
So far so good. You'll also want to make sure your computer has a static IP address (one that doesn't change every so often). Finally, you'll want to make sure that port 80 is open on your server box (and in your router's configuration, you'll need to forward port 80 to your server's IP).
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I make a webapp in javascript and java. Run localhost:8080 in NetBeans with GlassFish Server 5. I need make in a HTML page a chatroom and a poker tables with 6 clients. Chatroom is fine, used java websocket ServerEndpoint and JS client. But I want another channel for the game of poker. I tried to make another websocket ServerEndpoint but it doesn't work if i create it on port 8080. How can i solve it? It is important that I can only use java and javascript.
Maybe you can create a request type in your server code ,and when client connect to that server for different purposes sends relevant type of requests. E.g. chatroom client sends request with a parameter like {requestType:"chat"} and other one sends {requestType:"game"} among other parameters neccessary for your application.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I got a request at work to create an SMTP server so that our website can sent automatic emails on daily/weekly basis. In simple - we have a website running on node.js and I need to give it an ability to automatically send emails based on time or/and other conditions.
Since I never worked in this direction (and I just got into this field) I decided to ask a question here, to see what you(experts) have to say in regards of this subject.
p.s I might have a wrong understanding of how this should run, so feel free to correct anything that I said.
Since setting up a brand new smtp server and managing correct configuration, security, and most important, domain/ip reputation can be a real pain, I would suggest using a cloud service for this task to get you going faster.
A few of these services, some of them with free tiers are Amazon SMS, Mailgun, SendGrid and Mandrill. At least Mailgun has a API wrapper available for Node.JS.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
My website does this a lot, usually when I have a thread open. I think it might be because I am constantly (every 10 seconds or so) looking for new posts and notifications and loading them in through Ajax, but this shouldn't cause this error, right?
I use GoDaddy as a host, but in my previous tries of contacting them and asking for help they've not been useful. I am not sure if it's my code or their servers that cause this.
Any help would be greatly appreciated. It's been a while since I've been working on the site, since I kind of abandoned it after the error constantly happened and I couldn't find any answers as to why.
Are you using shared hosting with GoDaddy? GoDaddy shared hosting throttles the number of requests a hosted application can receive. If you have AJAX requests sending requests every 10 seconds, it will ignore a good proportion of those requests.
I recommend setting up a test server on the AWS cloud and porting the app over there. You'll get your own virtual server and the first year of hosting is free if you choose the smallest server size.