I have a .NET app that is serving up an Angular 1.4 app. I'm running a second Angular app in the nav bar that connects to a second server running Node.js and Socket.io.
I can connect to the the client to the server when I'm running the server on my localhost via
io.connect('http://localhost:8080')
but not when I'm trying to connect to my Heroku instance via
io.connect('http://my-weird-heroku-generated-url.com').
Is this because I'm not specifying the heroku port? Do I need to use the unaliased numeric IP address to my Heroku app (similar to the 127.0.0.1:8080 address/port to my localhost)?
Related
I have a pgsql db made with docker which is not accessible outsite of if. It is exposed on port 5432.
my db is hosted on my virtual machine ubuntu 20 IP = 123.4.5.6
I use a container with nginx for accessing my frontend and my backend
I want to access my database outside of the VM with a database client when calling the url 123.4.5.6/db-backdoor:5432/db-name
I've done some research and it's not possible to connect the db with http.
How should I write my nginx.conf for connecting my database client and how should I configure my databse client ?
I'm running a local express server at Port 5000. However, when I fetch http://localhost:5000/api from my react webapp (XAMPP), the server does not respond. How would I self host my express app to make it accessible from anywhere, not just during development.
Ideally, if your express server is running on port 5000 then it should be accessible by localhost:5000 or 127.0.0.1:5000. Try looking at your console logs in your browser for details(provide more information). Another thing to look out for is to check if it's running on http or https in production.
By default the server will run on all interfaces, not just localhost, so you can access it remotely by using its IP address on that network. (see https://stackoverflow.com/a/33957043/9726680)
I have an issue with connecting to my databases via desktop client. I use ssh key to connect to my server via console and I am able to connect to my live server.
But no luck for my database connection. I use TablePlus as my desktop client and I keep getting SSH Error, can't connect to host. That's all I get.
How can I find out what the problem is exactly?
I have web application which uses angular 6 on client side,asp .net core on backend and sql server as a database.
I want to deploy this web apllication on nginx server using docker.
I have installed docker on windows and created nginx container also,but I dont know how to map host application to container and how to serve application.
Note : operating system is windows.
Use Docker-compose (https://docs.docker.com/compose/). You can connect your containers via extra_hosts and start your app with one command
I'm building a simple web app (MEAN) and deploying to GCP (Google Cloud Platform) I have built an application where my client runs on 4200 and the server runs on port 3000. I have two choices, combine my client and server to run on the same port, or simply allow the connection between 4200 and 3000. Currently, I get an error trying to proxy requests between these two ports. Any ideas how I open 3000 so 4200 can talk to it?