C
C#4d ago
Gunshot

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.
No description
No description
No description
No description
28 Replies
Gunshot
GunshotOP4d ago
Oh and it cannot be a firewall or antivirus issue because it, allowed the first one
Gunshot
GunshotOP4d ago
BlazeBin - mzmcqowybgqf
A tool for sharing your source code with the world!
Gunshot
GunshotOP4d ago
Client is 93 host(listnener is 213
WhiteBlackGoose
where's the first code? @Gunshot
Gunshot
GunshotOP4d ago
wdum? its in the bin right
WhiteBlackGoose
in paste.mod I only see the second method
Gunshot
GunshotOP4d ago
No description
Gunshot
GunshotOP4d ago
odd looks like this
WhiteBlackGoose
sure, where's the method?
Gunshot
GunshotOP4d ago
ohh line 93 is the one getting rejected
WhiteBlackGoose
It's the new one Where's the first one, the working one?
Gunshot
GunshotOP4d ago
ohh ill put it in now
Gunshot
GunshotOP4d ago
BlazeBin - nzyvzwtgojfo
A tool for sharing your source code with the world!
Gunshot
GunshotOP4d ago
thats the working method the TCP parameter is just a new TCPClient();
WhiteBlackGoose
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?
Gunshot
GunshotOP4d ago
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?
WhiteBlackGoose
it fails at ConnectAsync?
Gunshot
GunshotOP4d ago
every time
WhiteBlackGoose
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 conclusion
Gunshot
GunshotOP4d ago
got it im gunna look at them one more time then give up, and submit with relevent documentation thanks though
WhiteBlackGoose
try disabling the firewall but yes that shouldn't matter
Gunshot
GunshotOP4d ago
No description
Gunshot
GunshotOP4d ago
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
WhiteBlackGoose
Oh wait, it's your own method? I never noticed
Gunshot
GunshotOP4d ago
oh wait i just saw 0 references maybe not yep im not dumb its just not working
WhiteBlackGoose
try narrowing it down a bit for example, first ensure you call it with exactly the same parameters port and ip address
Gunshot
GunshotOP4d ago
ok ill do that I have proved that it works with encryption but the TCP fails lots of times we will see
Want results from more Discord servers?
Add your server