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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
    Bookmark Topic Watch Topic
  • New Topic