sockets - Haunted by KillerService.exe while attempting to get C# server & client programs to communicate (from same machine) -
i made client & server programs in c# based on this example code.
server program:
tcplistener tcplistener = new tcplistener(8080); tcplistener.start();
first time ran this, windows firewall popped , asked me if should allowed network access.
client program:
iphostentry ip = dns.gethostentry(tbserver.text);//"mycomputer-msi" string addr = ip.addresslist[0].tostring(); tcpclient clientsocket = new tcpclient(addr, 8080);
at last line above, got message:
an unhandled exception of type 'system.net.sockets.socketexception' occurred in system.dll
additional information: no connection made because target machine actively refused it
i made sure both programs (client.exe , server.exe) allowed windows firewall. no other antivirus enabled (as far know).
checked conflicts command netstat -a -b
:
[killerservice.exe] tcp 127.0.0.1:8080 mycomputer-msi:0 listening
the strange thing killerservice.exe
(which can't find in of tabs when ctrl-alt-del) changes address match whichever port use server program.
Comments
Post a Comment