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
已提问 1 个月前106 查看次数
2 回答
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
专家
已回答 1 个月前
  • 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
专家
David
已回答 1 个月前
  • 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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则