unblocking a port

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • WAkthar

    unblocking a port

    Hi
    I have a simple socket program which needs to connect and send an xml stream
    through sockets.

    private int nCommPort = 4555;
    private string HostName = "localhost" ;
    private Socket TcpSocket;
    private XmlDocument objXmlDocument;


    IPAddress HostIP = Dns.Resolve(Hos tName).AddressL ist[0];
    IPEndPoint HostEP = new IPEndPoint(Host IP,nCommPort);
    TcpSocket = new
    Socket(AddressF amily.InterNetw ork,SocketType. Stream,Protocol Type.Tcp);

    // Get the client name
    string strHome = Dns.GetHostName ();
    string strMessage = "Hello from " + strHome;
    byte[] byteMessage =
    System.Text.Enc oding.ASCII.Get Bytes(strMessag e.ToCharArray() );

    // Connect to Server
    TcpSocket.Conne ct(HostEP);

    if(TcpSocket.Co nnected)
    {
    :
    :
    }

    I get an error

    Additional information: No connection could be made because the target
    machine actively refused it

    When I ran it first I got the usual XP message box asking whether to block
    or unblock this program. Unfortunatley I presses block instead of unblock.
    How can I unblock this now!!

    Cheers


  • Nick Weekes

    #2
    Re: unblocking a port

    I think you mean the Microsoft AntiSpyware tool, in which case double
    click the SysTray icon (red circle) and then goto Tools/Real time
    protection/view all blocked items. You can un-block from here.

    Comment

    • WAkthar

      #3
      Re: unblocking a port

      I do not have Microsoft AntiSpyware Tool installed on my machine.


      "Nick Weekes" <nickjunkinbox@ yahoo.co.uk> wrote in message
      news:1116948369 .688057.57460@z 14g2000cwz.goog legroups.com...[color=blue]
      >I think you mean the Microsoft AntiSpyware tool, in which case double
      > click the SysTray icon (red circle) and then goto Tools/Real time
      > protection/view all blocked items. You can un-block from here.
      >[/color]


      Comment

      • Willy Denoyette [MVP]

        #4
        Re: unblocking a port


        "WAkthar" <wakthar@hotmai l.com> wrote in message
        news:uNsHJeQYFH A.4024@TK2MSFTN GP10.phx.gbl...[color=blue]
        >I do not have Microsoft AntiSpyware Tool installed on my machine.
        >
        >[/color]

        A firewall maybe?

        Willy.


        Comment

        • WAkthar

          #5
          Re: unblocking a port

          Yes there is Windows Firewall but how do I unblock using this???




          "Willy Denoyette [MVP]" <willy.denoyett e@telenet.be> wrote in message
          news:eEHhhyRYFH A.2076@TK2MSFTN GP15.phx.gbl...[color=blue]
          >
          > "WAkthar" <wakthar@hotmai l.com> wrote in message
          > news:uNsHJeQYFH A.4024@TK2MSFTN GP10.phx.gbl...[color=green]
          >>I do not have Microsoft AntiSpyware Tool installed on my machine.
          >>
          >>[/color]
          >
          > A firewall maybe?
          >
          > Willy.
          >
          >[/color]


          Comment

          • Willy Denoyette [MVP]

            #6
            Re: unblocking a port


            "WAkthar" <wakthar@hotmai l.com> wrote in message
            news:OG6rA4SYFH A.2664@TK2MSFTN GP15.phx.gbl...[color=blue]
            > Yes there is Windows Firewall but how do I unblock using this???
            >
            >[/color]
            Add your port(s) to the exceptions.

            Willy.


            Comment

            Working...