Giter Club home page Giter Club logo

Comments (5)

ironsmile avatar ironsmile commented on June 15, 2024

The answer is, as with many things in life, "it depends". If you're running it on your home computer then you will have to expose it to the internet and this is relatively easy if you have a static IP. You will have to ask your ISP for that if you don't know what I am talking about. If you don't have a static IP then it gets a little bit harder but still, it is possible.

The first step, either way, is to make sure the Euterpe server is listening on your network interface. Which you could do by configuring the listen address to something like 0.0.0.0:9996. So your config.json will become similar to

{
    "listen": "0.0.0.0:9996",
    // other stuff we don't care about at the moment
}

After editing the file restart Euterpe. This will make sure it listens on port 9996 for all network interfaces. By default this is disabled and set to only listening to localhost for security reasons. It prevents you from accidentally leaking your music or opening up network ports to the wide world. You do that explicitly by editing the config.json.

If you are running Euterpe on a machine that is facing the public internet then that's it! You can go to http://<your-machine-public-ip>:9996 and you would see the web interface. Such machines are typically servers or virtual machines on public clouds as you suggested.

But probably you are using a home network and your router is doing NAT for you. Then you will have to go into its configuration and search for something like "Port Forwarding" or "Port Triggering", or something very similar. In there make a rule to forward port 9996 TCP traffic to your home machine's (the one which runs Euterpe) IP on the same port 9996. Once that is done you could go to http://<your-static-IP>:9996 and you would see the web interface, assuming you have a static IP for this router as discussed above.

If you don't have a public IP then you will have to use a service such as https://www.noip.com/. It requires cooperation between your router and the service and probably some account. There's documentation on the noip.com website for that. Once this is done you will have your Euterpe exposed to the internet through the noip method. Follow their documentation to find out what address you could use. Of course, there are other providers of the same service, for example dyn. Choose whichever you like most or whichever has an integration with your router.

That's it 😅 Of course, if you already have a web server under your control running anywhere then you could decide to run Euterpe behind. Here's the docs for Nginx and Apache which explain how you do that. This has the benefit that you won't have to open additional ports to the internet.

I hope this is not too much! I am considering switching the default listening address for Euterpe to 0.0.0.0:9996 anyway in the future. Which will make the first step, editing config.json, unnecessary.

from euterpe.

ironsmile avatar ironsmile commented on June 15, 2024

Actually, I went ahead and published this answer to the website. Thank you for the good question 😃

from euterpe.

emilchacko avatar emilchacko commented on June 15, 2024

Thanks for the quick and descriptive answer .I'm really impressed by the simplicity of you app.Thanks a lot.

from euterpe.

emilchacko avatar emilchacko commented on June 15, 2024

The link to website you linked seems to be wrong.

from euterpe.

ironsmile avatar ironsmile commented on June 15, 2024

Oh, you're right. Fixed it. It seems I pasted the wrong like from the dev version of the site 😅 And thank you for the kind words! ♥

from euterpe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.