473,395 Members | 1,468 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,395 software developers and data experts.

Getting through firewalls using HttpWebRequest

We are having a problem with firewalls. We can't pinpoint the exact
problem but the working theory at this point is the request from the
client software is reaching the server through port 80. The response
from the server is not making it back because the return port back to
the client software being blocked by the firewall. This seems to be an
intermittent problem because some of the ports are open through the
firewall and some are not. Outbound from the client to the server
(port 80) is obviously not blocked. The firewall and the settings are
at the client site and out of our control. First question: Is this a
good theory? 2nd: What is a good , general strategy for dealing with
these issues? 3rd: Can we control the inbound port - one that is not
blocked? 4th: Can we use a persistent connection so the inbound port
will not change? Would the inbound port change anyway even of we had a
persistent connection?

Thanks. Any help with this would be greatly appreciated.
Nov 21 '05 #1
3 4305
Generally, if the request is initiated by the client, then the response can
made on any port and the firewall will allow it. The firewall should
associate the return data with the request and allow the packet. What is it
that makes you come to this conclusion?

Dale
"Bruce Wolfe" <bw****@cgate.net> wrote in message
news:87**************************@posting.google.c om...
We are having a problem with firewalls. We can't pinpoint the exact
problem but the working theory at this point is the request from the
client software is reaching the server through port 80. The response
from the server is not making it back because the return port back to
the client software being blocked by the firewall. This seems to be an
intermittent problem because some of the ports are open through the
firewall and some are not. Outbound from the client to the server
(port 80) is obviously not blocked. The firewall and the settings are
at the client site and out of our control. First question: Is this a
good theory? 2nd: What is a good , general strategy for dealing with
these issues? 3rd: Can we control the inbound port - one that is not
blocked? 4th: Can we use a persistent connection so the inbound port
will not change? Would the inbound port change anyway even of we had a
persistent connection?

Thanks. Any help with this would be greatly appreciated.

Nov 21 '05 #2
Dale, Thanks for the reply. I did some more tests and have arrived at
the same conclusion. At this point, we are not sure what the problem
is. We think it might be related to hitting ports that are dedicated
to another service. I'll post again when I have better information.
Thanks again.
--Bruce
Nov 21 '05 #3
Hi Bruce and Dale,

i have exactly the same scenario with the client environment remote
to us and us having a dotnet webservice to be called from a dotnet
winform client.

The thing is, we have not yet discarded the theory that the firewall
is disallowing response from the webservice.

Bruce, can you please tell me as to how you concluded the theory to
be incorrect.
I see in Ethereal traces that there are only TCP ack=0 packets to the
webserver, but there are no responses.

the firewall's ( a Cisco Checkpoint Firewall ) behaviour is unknown
to me.

any info in this regard is greatly appreciated as it looks like a dead
end with my not having any documentation or support from cisco

regards
-kumarforg
Nov 21 '05 #4

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

Similar topics

2
by: Tim M | last post by:
Hi Does anyone know if its possible to create and email HTML forms. Email recipients would then input information to these forms in the same way that they would on a web page. Pressing the...
16
by: thomas peter | last post by:
I am building a precache engine... one that request over 100 pages on an remote server to cache them remotely... can i use the HttpWebRequest and WebResponse classes for this? or must i use the...
1
by: William F. Robertson, Jr. | last post by:
I am having problems with using the WebRequest object (or HttpWebRequest ). I have created the WebRequest and set the credentials, but when I call GetResponse() it is throwing an internal server...
10
by: Peter Afonin | last post by:
Hello, I have a simple client-side form that is checking the domain availability on the domain registrar's server: <FORM action="https://www.webnames.ru/scripts/RegTimeSRS.pl" method="post">...
3
by: Rahul Anand | last post by:
As per our requirements we have a web service which internally connects (Simple HTTP Post Request) to a remote server to initiate some work. We are calling the web service method asynchronously...
3
by: UJ | last post by:
I can easily get the TCP/IP address of the local machine but I'd also like to know if the machine is behind a firewall/hub - what the address is that is being sent over the net. Is there anyway...
5
by: Archana | last post by:
Hi all, I am having application where i am downloading xml content using webrequest. my code is as below HttpWebRequest lWebRequest = (HttpWebRequest) WebRequest.Create(URL); HttpWebResponse...
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
3
by: TC | last post by:
Hey All, I have some classes that I recently built for a website which uses the HttpWebRequest & HttpWebResponse objects from the System.Net namespace. Basically, the classes rap submitted data...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.