unblocking a port

W

WAkthar

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(HostName).AddressList[0];
IPEndPoint HostEP = new IPEndPoint(HostIP,nCommPort);
TcpSocket = new
Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);

// Get the client name
string strHome = Dns.GetHostName();
string strMessage = "Hello from " + strHome;
byte[] byteMessage =
System.Text.Encoding.ASCII.GetBytes(strMessage.ToCharArray());

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

if(TcpSocket.Connected)
{
:
:
}

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
 
N

Nick Weekes

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top