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 1077343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:33:37+00:00 2026-05-16T21:33:37+00:00

I have a connection which is behind a restrictive firewall which only allows HTTP(S)

  • 0

I have a connection which is behind a restrictive firewall which only allows HTTP(S) access through a proxy (10.10.1.100:9401). The IP address I get is dynamic and the subnet mask is 255.255.255.255 (I know, weird!).

I tried to write a simple Python socket program to connect to the proxy in order to send some HTTP requests:

import socket

s = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
s.connect(( "10.10.1.100", 9401 ))
s.send("GET /index.html HTTP/1.1\r\nHost: aorotos.com\r\n\r\n")
d = s.recv(1024)
print d
s.close()

I get an exception (113, “No route to host”) during the connect. Now here is the weird part—I can browse the web using these same proxy settings, and if check the currently connected sockets via netstat -tna I see an ACTIVE connection to 10.10.1.100:9401.

I tried a simple command like export http_proxy='10.10.1.100:9401' && wget aorotos.com/index.html and even that works! If I enable the debug option (-d) in wget, I can even get the socket’s file descriptor.

I went through the wget source code, and from what I can see it too uses a normal connect statement and does not set any special socket options (I’ll go through it more throughly later). I’ve tried the same code in C, and it too fails.

The routing table provided via route is

Destination Gateway     Genmask     Flags   Metric Ref  Use Iface
default      *          0.0.0.0       U     0      0     0  gprs0

Does anyone have any idea what might be wrong?

EDIT: Currently my IP is 10.16.82.250. And that is all that is there in the route output. If you’re interested my external IP is 203.8.8.2.

ifconfig gprs0 –

gprs0     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:10.17.221.94  P-t-P:10.17.221.94  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP  MTU:1400  Metric:1
          RX packets:1832 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1844 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 
          RX bytes:1878364 (1.7 MiB)  TX bytes:224746 (219.4 KiB)

EDIT 2 :
I landed up installing tcpdump and going through it’s manual, and finally installing wireshark ( I’m on my N900 ) only to realize, from the packet dump, that I’ve been using the port 4901 instead of 9401 in both in C program and the python script! Doh! I blame the small screen and, well, myself.

Is there any way to close this question with a “I’m an idiot” or something? 😛
Sorry for taking up your time! ( I’ve spent over a week on this. I can’t believe I went through most of wget‘s source code! )

  • 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-05-16T21:33:37+00:00Added an answer on May 16, 2026 at 9:33 pm

    I am not sure what the issue is but try using Wireshark. This will at least let you see what is going on at the network level. There should be enough info from the Wireshark packet logs to diagnose your problem.

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

Sidebar

Related Questions

I have a MySQL database behind a firewall which can only be accessed via
I have a database connection which takes an input from the querystring to access
I have the following PHP code which simply grabs a URL behind HTTP-Basic authentication
So I have the following connection string which is causing me issues. I am
I have a method connection(int n) which gives me all the cells number that
So I have a connection pool setup. Which is great and all since I
I have to check connection leak in my application i.e. open connections which have
I have an application which runs a tool that requires network connection. Now my
I have a USB GSM device which I use for Internet connection as well
Currently I have Windows App which is directly opening database connection (SQL Server is

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.