Firefox can’t establish a connection to the server at 127.0.0.1:8080

0

I am attempting a Ruby on Rails assigment for a class, but it will not work on any browser I use. I tried using FireFox on Fedora and I get a message saying, "Firefox can’t establish a connection to the server at 127.0.0.1:8080"

Even when changing the cookie setting, it still will not work.

Joey
asked a month ago85 views
2 Answers
1

To troubleshoot the issue, follow these steps:

  1. Confirm that your application is actively running.
  2. Confirm that it is operating on port 8080.
  3. Check your security configurations to make sure that they are not obstructing the port utilized by your Ruby on Rails server.
profile picture
EXPERT
answered a month ago
  • Thanks, how do I check?

  • Look it seems like the issue might be related to the application not running correctly, the port being blocked, or a misconfiguration in your Ruby on Rails application. Could you provide some additional details?

    • Is your Ruby on Rails application actively running when you try to access it? You can check this by looking at the output in your Cloud9 terminal.
    • Is your application configured to run on port 8080? You can verify this by checking the configuration files or the command used to start the server.
    • If you're using Fedora/Linux, you can check if port 8080 is already in use by another process. Run the following command in the terminal:
    netstat -tuln | grep 8080

    If the port is in use, you can free it up by killing the process:

    sudo lsof -t -i:8080 | xargs -r sudo kill

    After killing the process, try running your application again.

    • Verify your security settings to ensure that they are not blocking the port used by your Ruby on Rails server. This includes firewall settings and any security groups or rules in your cloud environment. You can refer to my post on networking: Networking 101 Part 2, specifically the section about Security Groups.
    • Are there any error messages in your Ruby on Rails application logs or in the browser console?
0

Do you have an inbound security group for port 8080 open to your IP address? Also what is the server's public IP address?

profile pictureAWS
EXPERT
David
answered a month ago
  • http://127.0.0.1:8080/ Not sure what inbound security group is or how to check

  • If your application is running on an EC2 instance, you should check the associated security group, which acts as a firewall controlling traffic to your instance. For more information, you can refer to my post on networking: Networking 101 Part 2, specifically the section about Security Groups.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions