Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Run my chat on internet instead of localhost

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hello everyone,

I had worked for a couple of time on developing some stuff working correctly on my home PC or to enter the main subject, on localhost like the chat program using (node, j's + mongodb + socket. Io). So now, when I try to make it on the internet (I have a web hoster) to enable every client who reaches my website the possibility to write text in seeing the chat box and all clients whose are on the same page will see that too.

I'm a little bit new with this sort of architecture, so please try to explain me which part of my code need to be on the host and on my PC. And also, how can I deal with the changing of the IP's address.

On the localhost, the chat works great. I launch the server.js, I have a database where I store the messages and an html/css chat box.

I want it to work like the phpMyChat application (some think like this).

Thanks.

David
 
Rancher
Posts: 43081
77
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Welcome to the Ranch.

Nothing would run on your local machine. You would install the web app and the DB on your hosting server, and everyone would point their browser at the URL of the chat page. The IP of the server doesn't change, so that wouldn't be a concern.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Closing this thread; it is continued at https://coderanch.com/t/637406/mongo/databases/put-mongoDB-server-host.
 
There are 29 Knuts in one Sickle, and 17 Sickles make up a Galleon. 42 tiny ads in a knut:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
    Bookmark Topic Watch Topic
  • New Topic