TCP Help again...
Hi i got a issue right so like basically i got a listener on a port and i can connect to it write data to it and all, on one .cs form but when i try to do the same from a different .cs file it says its actively refusing the connection???
the code that works is the first photo and the code im using is the second. I wont be using the former in the final code but i want it to work in the latter.
the second is the exact same code as the first but it is being actively refused as in the third screen shot. the final screen shot is what it is supposed to do.
28 Replies
Oh and it cannot be a firewall or antivirus issue because it, allowed the first one
full code is https://paste.mod.gg/mzmcqowybgqf/0
BlazeBin - mzmcqowybgqf
A tool for sharing your source code with the world!
Client is 93 host(listnener is 213
where's the first code? @Gunshot
wdum?
its in the bin right
in paste.mod I only see the second method
odd
looks like this
sure, where's the method?
ohh
line 93
is the one getting rejected
It's the new one
Where's the first one, the working one?
ohh ill put it in now
BlazeBin - nzyvzwtgojfo
A tool for sharing your source code with the world!
thats the working method
the TCP parameter is just a new TCPClient();
okay it dosen't seem you changed anything tcp related
are you sure you're not doing evil things like starting two listeners on the same port?
100%
each listener is opened on a prechecked open port
although that kinda makes this project show up as a trogen on antivirus
i have already solved that
so if my TCP is working it must be network right?
it fails at
ConnectAsync
?every time
I'm not going to check if you did the TCP part correctly, I'm too sleepy for that
I just
diff
'd your two methods and found no relevant difference, that's how I arrived to my conclusiongot it im gunna look at them one more time then give up, and submit with relevent documentation
thanks though
try disabling the firewall but yes that shouldn't matter
im so dumb
im so dumb
im making a whole new client
i cba
mb bro
that was so stupid
that connect async function makes a new client ontop of my original
Oh wait, it's your own method? I never noticed
oh
wait
i just saw 0 references
maybe not
yep im not dumb
its just not working
try narrowing it down a bit
for example, first ensure you call it with exactly the same parameters
port and ip address
ok ill do that
I have proved that it works with encryption but the TCP fails lots of times
we will see