Re: Socket error



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






.



Relevant Pages

  • Socket error
    ... 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. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Socket error
    ... You sure no other app is running that port on that machine? ... The socket listener app: opens up the port 51296 and listens. ... I have firewall enabled on the server box. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Intermittent Oracle client errors
    ... 12535 is usually caused by firewall. ... only used to contact the listener. ... the session is redirected to a random port. ... There is no such thing as port redirection. ...
    (comp.databases.oracle.server)
  • Re: keeping ports open
    ... If a port is open, it means that 1) a software or service is running on your ... and 2) you're not using a firewall or your firewall isn't ... Use firewall software and hardware and antivirus software that is ... Follow the instructions for hardening Windows and IIS at ...
    (microsoft.public.security)
  • Re: How to Maintain an IIS Server?
    ... > server running on a Windows 2000 server. ... before a firewall and antivirus have been installed]. ... open ports; however, this will not identify which program is using the port. ...
    (microsoft.public.inetserver.iis.security)