Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am doing socket-client programming in C#.
I have written TCPListener on Socket server side.
It works fine when I try to connect to it from client side on same machine. But if Socket server and client both are on different machine, I get exception saying "No connection could be made because the target machine actively refused it".
I checked socket information like ip address and port number on both the side which are absolutely correct.
I checked Antivirus log, it clearly stated that Antivirus/Firewall blocking the ip traffic.
I can't change Antivirus/Firewall settings as these are disabled by an Administrator.

Is there any programmatic way to tackle this problem? Is there any option while writing TCPLister or socket client which can provide me solution to tackle issue of Firewall.

Any help that can be provided would be greatly appreciated. Thank you.
Posted

1 solution

Hello,

you can look into this. This is working fine for me for different PC.

A full library for a Socket Client/Server system[^]


Thanks
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900