Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I'm trying to convert the ols socket system into TcpListener.

this is depricated but working
Dim Listener As New TcpListener(poort)


correct must be see tryed

But this way I always get an error: can't create connection becourse the target pc has deniad the conection actively(translated by me :))


Any ideas what I'm doing wrong?

Jan

What I have tried:

Dim Listener As TcpListener
Dim ip As Net.IPAddress = Net.IPAddress.Parse("127.0.0.1")
Listener = New TcpListener(ip, poort)
Posted
Updated 12-Aug-18 0:28am
v2

1 solution

TCPListener in your code requires to be run in administrator mode, also you should open the port on your computer's firewall for other machines to connect.
 
Share this answer
 

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