The backend of the application I am working with is running on docker. and the port is open on localhost:80. I am trying to connect xamarin form android apps ( android emulator) with the backend.
So i am confused about the backend IP address. will it be the host IP or docker ip?
Related
I'm trying to connect to Angular application running in port 3000 from Docker container ( Apache OIDC container ) using host.docker.internal.
Log from Apache OIDC Container
AH00957: HTTP: attempt to connect to 172.28.32.1:3000 (host.docker.internal) failed"}
My IPConfig
Angular Application in host machine is running 3000.
conclusion -
Able to hit the internet ( Google and some service )
Able to ping WSL VEthernet IP , still unable to hit my angular application running in port 3000 in my local machine.
I have already tried firewall opening from rancher desktop FAQs
I am testing a full-stack React app on my iPhone, which is configured with the frontend running on port 3000 and the server on port 8080. I know that to access the localhost from your iPhone, you find the IP address of your computer and replace "localhost" with the IP in your mobile Safari, appending port 3000. However, this only brings me to my login screen. From there, when trying to log in to the app, it is sending a request to "localhost:8080/login", and I'm getting a Network Error in response.
How can I fix this so I can log into the app on localhost and test mobile features on my iPhone?
I'm trying to implement a login in react native + flask app. I have a docker container for my server API. I've run it on my localhost in my computer. I'm also running my front-end on expo. Since it's a different host, how can i send POST request from my mobile device (expo) to the server running on localhost in my computer?
Docker server runs in port 5000 in container. I've mapped the local port 5000 to container's 5000 port.
First of all I hope you are exposing the correct server ports in the docker container.
Then, it can be easily done by using you local machine IP address in your home network instead of "localhost". Maybe your Firewall settings must be changed.
For React I usually save the server IP in an .env, so for production I can easily switch the server
So I've been trying to host my own Minecraft server for a while now and I hit a snag.
I have proxmox (192.168.2.100) running an ubuntnu server VM (192.168.2.101) which has a docker container running my Minecraft server. I can connect to the server locally just fine using the ubuntu's IP address and minecraft port, but when I try to port forward the server, I can't connect to it. I checked to see if my port was exposed or not and it is so I know it's not that.
This is the container that I'm using
Okay, so after a long time looking at configurations and some help from the proxmox forum, it turns out that my modem doesn't support NAT reflection which means that any attempts to access my server though my public IP on the same network wouldn't work at all. I used my phone's mobile network to test if I could access the server from outside my local network and it worked just fine!
Can I use a Desktop as a docker server and connect via a mac to the hosted address? I have some applications I am running on my mac and they are killing the processing speed so I was wondering if I could offload them to a PC hosted server?