473,326 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

why proxy doesn't recieve localhost requests from ie6

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

Sep 10 '06 #1
4 4662
With the proxy exceptions, I found that I had to specify both localhost
and 127.0.0.1 for it to work. That was in IE6. Also had to specify full
url:
http://localhost/; http://127.0.0.1/
Hope this helps,
Steve

me****@gmail.com wrote:
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
Sep 10 '06 #2
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

"me****@gmail.com" wrote:
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

Sep 11 '06 #3
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

Steven Nagy wrote:
With the proxy exceptions, I found that I had to specify both localhost
and 127.0.0.1 for it to work. That was in IE6. Also had to specify full
url:
http://localhost/; http://127.0.0.1/
Hope this helps,
Steve
Sep 11 '06 #4
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

Ciaran O''Donnell wrote:
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
Sep 11 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Fuzzyman | last post by:
I am trying to write a small server program that will work on a *client* machine as a localhost server. It should then act as a proxy server but modify URLs fetched through it - so that the fetches...
4
by: Fuzzyman | last post by:
In a nutshell - the question I'm asking is, how do I make a socket conenction go via a proxy server ? All our internet traffic has to go through a proxy-server at location 'dav-serv:8080' and I...
3
by: demonhunter | last post by:
Hi, I am trying to fetch a web content using LWP and HTTP modules behind corp firewall. I set proxy server as shown in my internet explorer connection setup. When i run the script, i got...
9
by: Codex Twin | last post by:
I am re-sending this in the hope that it might illicit a response. I have a corporate client who forces their workstations to get the proxy server details using an automatic proxy discovery script....
0
by: Peter Theill | last post by:
I have these two web services: namespace WebService1 { public class Service1 : System.Web.Services.WebService { public Service1() { } public string HelloWorld() {
7
by: Pro1712 | last post by:
Hello, I need to write a simple proxy server. What I want to do is to use HttpListener to get requests from the browser, add some proxy information and some other stuff and send the request to...
2
by: Chema | last post by:
Hi all. I have a little script to connect to the internet and download some files. I developed it in my house (direct connection) and it wordked properly. But the problem is that in the office...
2
by: Peter | last post by:
Firstly let me be very clear about this, I do not want to create a web service proxy nor do I want to do anything with web services. Basically, I have a shrink wrapped desktop application which...
2
by: =?Utf-8?B?TGFycnlLdXBlcm1hbg==?= | last post by:
Our WebDev team seems to have found a problem that exposes a bug in .NET 2.0. This problem can be shown when trying to access a WebService using SSL and through a proxy server after using the...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.