Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8066249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:55:30+00:00 2026-06-05T11:55:30+00:00

I have blocked a port 8070 by the following command: sudo iptables -A INPUT

  • 0

I have blocked a port 8070 by the following command:

sudo iptables -A INPUT -p tcp --destination-port 8070 -j DROP

Now, when I deploy my web application in embedded Tomcat 7 on port 8070, and If I access through the URL http://localhost:8070/app or http://192.168.1.3:8070/app, I always get the exception Connection timed out. That is usual because I have blocked that port.

But when I access the URL http://192.168.1.3:8070/app through the chrome browser, I get the Connection Timed out error message. That is also as expected. But When I try to access http://localhost:8070/app through chrome browser, It gives me successful response. This is unusual.

Why I am able to access through browser on localhost, but not through Apache HttpClient library?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T11:55:31+00:00Added an answer on June 5, 2026 at 11:55 am

    Chrome uses IPv6 so it can resolve localhost using that, the other examples are using IPv4. So check your hosts file if it contains an ::1 entry for localhost?

    You can try with no IPv6 for chrome as well with this command line flag:

    --disable-ipv6

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to port a windows 6.5 app to both Monodroid and Monotouch. Now
Apple have long blocked mobile Safari from playing sounds – the usual JavaScript commands
I have members that can be blocked and when the member is blocked I
I have a website a part of which should be blocked with a login
Sockets on Linux question I have a worker thread that is blocked on an
We have a .NET application which, on a certain server, keeps making various TCP
I have a server than is a command handler process. It receives messages over
I have a problem connecting to any serial port (want to exchange with an
Let's say we have the follwing code: SerialPort port = new SerialPort(COM2, 115200); port.Open();
I have a class which reads data from port through TcpClient. I've created 2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.