I use Microsoft Visual Basic 2008 Express Edition and I am begginer in computer networks.

I want to make two PCs communicate via network using server/client

I followed the example from this site: http://www.eggheadcafe.com/articles/20020323.asp (VB.NET TCP Client/Server Socket Commmunications)

When I run the applications server and client in one computer then is possible the client to connect with server.

When I use two computers via network, in the first computer I run the server application and in the second computer the client application then the client it gives me error message like:
No connection could be made because the target machine actively refused it

How can I solve this issue?

Recommended Answers

All 2 Replies

>the target machine actively refused it
It only happens if the server isn't listening on the expected port (8000).

problem solved, thank you for your respose.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.