473,797 Members | 2,933 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4351
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.n et> wrote in message
news:87******** *************** ***@posting.goo gle.com...
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
1869
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 submit button would mail the form back, after which it would be separately submitted to an ASP page on the web server for processing. The main reason for this is so we don't have all the
16
12648
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 MSHTML objects to really load the HTML and request all of the images on site? string lcUrl = http://www.cnn.com; // *** Establish the request
1
3224
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 error 500 on me. I am running a console app on my sql server that is trying to create a WebRequest to my Webserver to notify the cache on the webserver to refresh itself. The website is using NT authentication. The user I am using is in the...
10
1945
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"> <input type="hidden" name="thisPage" value="pispCheckDomain"> <input type="hidden" name="username" value="test"> <input type="hidden" name="password" value="test"> domain_name: <input type="text" name="domain_name"><br>
3
4080
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 from a .NET Web Application hosted on IIS. In our setup the web request form a client can be running for long duration (may be more than 4 hours). We are getting exceptions during the HTTP send/receive inside the web service method. The exception...
3
1945
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 to get the TCP/IP that is actually being sent out there? TIA - Jeff.
5
9122
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 lWebResponse = (HttpWebResponse) lWebRequest.GetResponse(); StreamReader lResponseStream = new StreamReader(lWebResponse.GetResponseStream(),enc); Data = lResponseStream.ReadToEnd();
33
11867
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 (NT_AUTHORITY\SYSTEM). I understand that when the service starts, no user may be logged in, but that's ok, as the app I am monitoring can only be run by a logged in user. Do I need to use WMI to get the user context of Explorer.exe or is there a...
3
1935
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 up, connect to external websites on external servers and post / remove the data from these other sites. It works fine locally but when uploaded to the BCentral production server, the outgoing requests get shutdown.
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9536
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9063
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7559
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5458
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4131
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.