I want to make a domain point to my Heroku app, so I am trying to create an A record that targets myapp.herokuapp.com.
The problem is that the domain provider requires an IP address, and I cannot find any IP address for my Heroku app. I guess it might be something about Heroku only having dynamic IP addresses (and thus no static IP addresses).
How can I fix this problem? Can I make Heroku use static IP addresses?
Related
I'm trying to move my website over to AWS. I set up EC2 but I can't find a way to access the dev site I've set up to allow me to test it works before I switch over. The stack is Laravel/Forge and Nginx.
I have assigned an Elastic IP address, and I've enabled HTTP access via port 80. But when I go to the IP address it redirects to the live domain itself.
Same thing when I use the Public IPv4 DNS (ec2-<IP address>.compute-1.amazonaws.com).
I've been battling with it for some time. Can anyone advise what I'm doing wrong.
Is there a way to view the IP addresses of people who have visited my web application which was deployed with heroku? swish-prophet.herokuapp.com
From within your app's code, you can get the IP address of the person making the request using the HTTP_X_FORWARDED_FOR HTTP header.
You can also see that information in your app logs with the heroku logs command.
You can use $_SERVER['REMOTE_ADDR'] with php.
But you need to consider that some users are behind a proxy system, so there's no way to register that users correct address.
Some websites use REMOTE_ADDR such as:
IP Chicken
Mi IP
Meu IP
My IP Address
Is there a way to check if Heroku changed the static ip which we get by using proximo add on?
I've registered a custom domain name but am getting confused with how to point it to my app on Heroku. If I understand correctly, I need to update my CNAME Records where I registered my domain name.
I've pointed my CNAME to my app on heroku. However it appears I also need to update the A-Record and enter the IP address of my Heroku app... This is where I'm stuck, as Heroku does not seem to provide any IP Addresses.
What am I doing wrong?
You can point any host name at heroku, like www.yourdomain.com by adding a CNAME record:
CNAME www.yourdomain.com your-heroku-app.herokuapp.com
This will forward any DNS queries for www.yourdomain.com to resolve to the IP for your-heroku-app.herokuapp.com.
All of the users in my app's Users table have signin IP addresses that are 'private' 10.x.x.x
So while devise is recording the IP address of a user when they signin, it appears to ACTUALLY be recording some sort of heroku internal IP address, probably related to the fancy grid architecture routing.
Does anyone know how my heroku-hosted app can record the actual incoming IP address?
It should be able to.
Something like this should yield the proper IP address:
ip = env[‘HTTP_X_REAL_IP’] ||= env[‘REMOTE_ADDR’]
The problem is because your app is behind a proxy or something like that.
Look at this patch: https://github.com/plataformatec/devise/pull/1398
It should solve the problem.