why proxy doesn't recieve localhost requests from ie6

M

merdaf

I have built a proxy that run on port 8080. Indeed all the requests go
through this proxy.
However it failed to listen to requests that are being sent to the
localhost (IE doen't send those requests through the proxy).

This is the Listener code (in short ofcourse)

server = new TcpListener(IPAddress.Loopback, 8080);
server.Start();
Socket sock = server.AcceptSocket();

When I navigate using IE6 (or IE7) to
http://localhost/MyServer/default.html, AcceptSocket() is still
blocking.

The IE settings are:
1. Internet Options -> Connections -> Lan Settings.
the bypass proxy server option is unchecked.

2. Internet Options -> Connections -> Lan Settings -> Advanced
HTTP: 127.0.0.1:8080
All the other protocols (HTTPS, ftp..) are empty.

3. Internet Options -> Connections -> Lan Settings -> Advanced,
the exceptions text box is cleared.

I really appricaite any help in this matter,
Thanks in advance
Izik
 
G

Guest

I always had the impression that windows/IE doesnt use the network for
localhost as it is mapped to 127.0.0.1 which is a special IP for local
loopback. Try using you actuall IP address or your machine name in the URL.

HTH

Ciaran O'Donnell
 
M

merdaf

Thanks for your reply Steven.
If I got it right, the proxy exceptions textbox holds all the URLs I
want to bypass. Since I am looking for the exact opposite I am not sure
writing in the proxy exceptions textbox "localhost; 127.0.0.1" or
"http://localhost/; http://127.0.0.1/" is the right solution for me.

Thanks,
Izik
 
M

merdaf

Thanks for your reply, Ciaran O''Donnell.

Indeed using the machine name worked fine for me.

However I find it very strange that IE doesn't tunnel requests for the
localhost through the proxy, after all it has an option to
disable/bypass such requests (. Allow to disable something that can't
be enabled seems to me a bit bizarre.

Don't you think?

Thanks,
Izik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top