Re: Socket error
- From: "Jay" <Jay@xxxxxxxxxxxxx>
- Date: Fri, 9 Feb 2007 11:52:39 -0600
I cannot turn off the firewall. Its set by the corporate group policy.
I have admin previlages to modify, but not turn it off completely.
"PokerMan" <nospam@xxxxxxxxxxxxxx> wrote in message
news:uzX7MAHTHHA.5060@xxxxxxxxxxxxxxxxxxxxxxx
Definitely sounds like the firewall or some other thing cauing the issue.
You sure no other app is running that port on that machine? did you check
the client is also not blocking that port?
I usually turn off everything, antivirus progs everything (best to not be
on the net when you do this) and all firewalls. Then try, if it works i
start to put them on one by one until it doesn't work. Then fix the app
causing the block.
"Jay" <Jay@xxxxxxxxxxxxx> wrote in message
news:%23Pa1owGTHHA.388@xxxxxxxxxxxxxxxxxxxxxxx
I have a socket listener and a test app.
The socket listener app: opens up the port 51296 and listens.
The test app - sends a message on port 51296.
If the listener and test app are on the same box, all is well -
everything works as expected.
But when I move my test app to a remote box: I get the following error:
"no connection could be made because the target machine actively refused
it"
--------------------------------------------------
This is the listener code:
IPHostEntry hostEntry = Dns.GetHostEntry(myserver.domain.com);
IPEndPoint ipe = new IPEndPoint(hostEntry.AddressList[0], 51296);
Socket soc =
new Socket(ipe.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
soc.Connect(ipe);
soc.Send(Encoding.ASCII.GetBytes("some text message"));
soc.Close();
------------------------------------------------------------------------------------------------
I have firewall enabled on the server box (where the listener is
running).
I tried setting the firewall options to unblock the port 51296 for all
traffic.
That did not work.
Any ideas on how to detect where the problem is..?
Thanks much
Jay
.
- Follow-Ups:
- Re: Socket error
- From: Ignacio Machin \( .NET/ C# MVP \)
- Re: Socket error
- References:
- Socket error
- From: Jay
- Re: Socket error
- From: PokerMan
- Socket error
- Prev by Date: Re: Socket error
- Next by Date: How can I wrap a collection ? (re-repost)
- Previous by thread: Re: Socket error
- Next by thread: Re: Socket error
- Index(es):
Relevant Pages
|
|