473,405 Members | 2,421 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,405 software developers and data experts.

Socket Programming C# Problem

I have written a socket server and a client in C#. The server resides on the server which has an external IP address.
The client resides within the firewall (ISA) of the company.
When the client tries to connect to the server...it gets an error telling the host computer not responding.Though I am able to ping the server machine from the client machine. What could be the possible reasons and how to overcome it.

Thanks in advance.
Apr 30 '07 #1
3 1610
TRScheel
638 Expert 512MB
I have written a socket server and a client in C#. The server resides on the server which has an external IP address.
The client resides within the firewall (ISA) of the company.
When the client tries to connect to the server...it gets an error telling the host computer not responding.Though I am able to ping the server machine from the client machine. What could be the possible reasons and how to overcome it.

Thanks in advance.

When I fooled around with sockets I had a lot of issues with the windows firewall. I had to specifically allow my program to have clearance before I could talk to the server. Could be the same issue you are facing here.
Apr 30 '07 #2
AdrianH
1,251 Expert 1GB
I have written a socket server and a client in C#. The server resides on the server which has an external IP address.
The client resides within the firewall (ISA) of the company.
When the client tries to connect to the server...it gets an error telling the host computer not responding.Though I am able to ping the server machine from the client machine. What could be the possible reasons and how to overcome it.

Thanks in advance.
When I fooled around with sockets I had a lot of issues with the windows firewall. I had to specifically allow my program to have clearance before I could talk to the server. Could be the same issue you are facing here.
That sound about right. Software firewalls will not usually let traffic out of the computer from an application it doesn't recognise using ports you have not allowed.

In addition to the software firewall you may have on your machine, your company's firewall may also be blocking ports. You may have to talk to the administrator to get these ports opened, or use ports that are already opened.

BTW, what does ISA mean? Is that your company? The name of the firewall your company is using?


Adrian
May 1 '07 #3
TRScheel
638 Expert 512MB
That sound about right. Software firewalls will not usually let traffic out of the computer from an application it doesn't recognise using ports you have not allowed.

In addition to the software firewall you may have on your machine, your company's firewall may also be blocking ports. You may have to talk to the administrator to get these ports opened, or use ports that are already opened.

BTW, what does ISA mean? Is that your company? The name of the firewall your company is using?


Adrian
Ya, the only time I didnt have issues with firewalls is when I was talking to 127.0.0.1. If I tried to use my actual address, it went out then back in, and I had to build the program, then add it to the exceptions list... and do that EVERY build.
May 10 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: John Sheppard | last post by:
Thanks to everyone that responded to my previous Socket Programming question. Now I have run into some behavior that I don't quite understand. Programming environment. VS.NET 2003, C#, Windows...
2
by: djc | last post by:
I read a network programming book (based on framework 1.1) which indicated that you should 'never' use the RecieveTimeout or the SendTimeout 'socket options' on TCP sockets or you may loose data. I...
11
by: atlaste | last post by:
Hi, In an attempt to create a full-blown webcrawler I've found myself writing a wrapper around the Socket class in an attempt to make it completely async, supporting timeouts and some scheduling...
0
by: shonen | last post by:
I'm currently attempting to connect to a shoutcast server pull down the information from here and then I'll parse it. I got this working with the httplib, which was great, the problem is I want...
14
by: =?Utf-8?B?TWlrZVo=?= | last post by:
I have a sync socket application. The client is blocked with Socket.Receive(...) in a thread, another thread calls Socket.Close(). This unblock the blocked thread. But the socket server is still...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
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,...

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.