π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–—
π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–—
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
I mean, I'll find and use an unused port from here.(https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers)
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
i do not understand . If you mean the number 80
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
i make them
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
my router prot
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
this is all code
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
oh ok
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
i in voice dev-vc-0
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
if you want i show you the app
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
Wait in AcceptTcpClient
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
server side AcceptTcpClient stock
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
it work but for client side
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
yes i make them
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
i use public IP and turn off firewall
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
C#
Client Side
try
{
tcp = new TcpClient();
tcp.Connect(new IPEndPoint(IPAddress.Parse(Tbox_Ip.Text), int.Parse(TBox_Prot.Text)));
//tcp.Connect(Tbox_Ip.Text, int.Parse(TBox_Prot.Text));
stream = tcp.GetStream();
data = new Data();
backgroundWorker1.WorkerSupportsCancellation = false;
backgroundWorker1.RunWorkerAsync();
backgroundWorker2.WorkerSupportsCancellation = false;
backgroundWorker2.RunWorkerAsync();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
C#
Client Side
try
{
tcp = new TcpClient();
tcp.Connect(new IPEndPoint(IPAddress.Parse(Tbox_Ip.Text), int.Parse(TBox_Prot.Text)));
//tcp.Connect(Tbox_Ip.Text, int.Parse(TBox_Prot.Text));
stream = tcp.GetStream();
data = new Data();
backgroundWorker1.WorkerSupportsCancellation = false;
backgroundWorker1.RunWorkerAsync();
backgroundWorker2.WorkerSupportsCancellation = false;
backgroundWorker2.RunWorkerAsync();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
28 replies
CC#
Created by π•Άπ–Žπ–“π–Œ_π–˜π–™π–†π–— on 12/30/2022 in #help
❔ TCP Connect To Public iP
C#
server side
try
{
//Tls = new TcpListener(IPAddress.Parse(Tbox_Ip.Text), int.Parse(TBox_Prot.Text));
Tls = new TcpListener(IPAddress.Any, int.Parse(TBox_Prot.Text));
Tls.Start();
tcp = Tls.AcceptTcpClient();
stream = tcp.GetStream();
data = new Data();
backgroundWorker1.WorkerSupportsCancellation = false;
backgroundWorker1.RunWorkerAsync();
backgroundWorker2.WorkerSupportsCancellation = false;
backgroundWorker2.RunWorkerAsync();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
C#
server side
try
{
//Tls = new TcpListener(IPAddress.Parse(Tbox_Ip.Text), int.Parse(TBox_Prot.Text));
Tls = new TcpListener(IPAddress.Any, int.Parse(TBox_Prot.Text));
Tls.Start();
tcp = Tls.AcceptTcpClient();
stream = tcp.GetStream();
data = new Data();
backgroundWorker1.WorkerSupportsCancellation = false;
backgroundWorker1.RunWorkerAsync();
backgroundWorker2.WorkerSupportsCancellation = false;
backgroundWorker2.RunWorkerAsync();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
28 replies