473,385 Members | 1,676 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,385 software developers and data experts.

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

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

// 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
Nov 17 '05 #1
5 3569
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.

Nov 17 '05 #2
I do not have Microsoft AntiSpyware Tool installed on my machine.
"Nick Weekes" <ni***********@yahoo.co.uk> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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.

Nov 17 '05 #3

"WAkthar" <wa*****@hotmail.com> wrote in message
news:uN**************@TK2MSFTNGP10.phx.gbl...
I do not have Microsoft AntiSpyware Tool installed on my machine.


A firewall maybe?

Willy.
Nov 17 '05 #4
Yes there is Windows Firewall but how do I unblock using this???


"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:eE**************@TK2MSFTNGP15.phx.gbl...

"WAkthar" <wa*****@hotmail.com> wrote in message
news:uN**************@TK2MSFTNGP10.phx.gbl...
I do not have Microsoft AntiSpyware Tool installed on my machine.


A firewall maybe?

Willy.

Nov 17 '05 #5

"WAkthar" <wa*****@hotmail.com> wrote in message
news:OG**************@TK2MSFTNGP15.phx.gbl...
Yes there is Windows Firewall but how do I unblock using this???

Add your port(s) to the exceptions.

Willy.
Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: ^CeFoS^ | last post by:
Hello to everybody, I've done an application that draws in a frame the trajectory of a robot. The robot position is readed through the serial port, and several commands are wrote through the...
21
by: Alexander N. Spitzer | last post by:
If I have a machine with 3 virtual IP addresses (192.168.1.), how can I start 3 instances of the same RMI application (each started with different properties/configs), each listening on the port...
0
by: per.bergstrom | last post by:
To whom it may concern, The serial port server 'cnhd38' has been terminated (on who's initiative, I don't know). It affects the users of the (at least) following nodes: cnhd36, cnhd44, cnhd45,...
2
by: willie | last post by:
Hi, I'm writing a program which requires the use of three serial ports and one parallel port. My application has a scanning devices on each port, which I can access fine with pyserial. ...
6
by: kai | last post by:
Hi, I was tring to run an example (HelloWorld.aspx) from MSPrss book, I get this message: "ASP.NET Development Server faild to start listening port 1034. Error message: An attempt was made...
4
by: H J van Rooyen | last post by:
Hi All, I am writing a polling controller for an RS-485 line that has several addressable devices connected. It is a small access control system. All is well- the code runs for anything from...
25
by: bmearns | last post by:
Is it possible to specify which port to use as the outbound port on a connection? I have the IP address and port number for the computer I'm trying to connect to (not listening for), but it's...
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
5
by: Maciej Sondej | last post by:
Hi, I have problem. I want to react on event which come from IO.Port(RS232). I have a class that works on console application class Program { static void Main(string args) {
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.