Post: c# Public Servers?
09-14-2015, 04:28 AM #1
Trefad
I defeated!
(adsbygoogle = window.adsbygoogle || []).push({}); Hey I need help figuring out how to make a program with clients from different ip addresses and locations instead or a local ip or something(ex. Chat program like skype). I need help figuring out what to look up as a tutorial or something like that. I've seen things about Tcp but i'm not sure if thats actually public servers. Also what lenguage is better for things like this, c# or Visual Basics. Thanks!.
(adsbygoogle = window.adsbygoogle || []).push({});
09-14-2015, 07:56 AM #2
Mango_Knife
In my man cave
Originally posted by Trefad View Post
Hey I need help figuring out how to make a program with clients from different ip addresses and locations instead or a local ip or something(ex. Chat program like skype). I need help figuring out what to look up as a tutorial or something like that. I've seen things about Tcp but i'm not sure if thats actually public servers. Also what lenguage is better for things like this, c# or Visual Basics. Thanks!.


C# and Visual Basic are almost the same
Hit me up on skype: Mango_-Knife

But before, try look here You must login or register to view this content.
I made it so it will work on HWID (Hardware ID) So every machine have it's own login details
But if you stil having problems with that just contact me on skype Smile
09-14-2015, 07:16 PM #3
Trefad
I defeated!
Originally posted by Knife View Post
C# and Visual Basic are almost the same
Hit me up on skype: Mango_-Knife

But before, try look here You must login or register to view this content.
I made it so it will work on HWID (Hardware ID) So every machine have it's own login details
But if you stil having problems with that just contact me on skype Smile


Ok thanks Smile
09-18-2015, 11:08 PM #4
Scouse Power
Knowledge is power
Originally posted by Trefad View Post
Hey I need help figuring out how to make a program with clients from different ip addresses and locations instead or a local ip or something(ex. Chat program like skype). I need help figuring out what to look up as a tutorial or something like that. I've seen things about Tcp but i'm not sure if thats actually public servers. Also what lenguage is better for things like this, c# or Visual Basics. Thanks!.


You best bet would be client->server->client rather than client->client
As client->client is not a good thing to learn into.

First of all to get started you need to make 2 socket listeners one being the server and the other being the client - tcp is a good, just like you said.
Then you want to send data from one to the other and vice versa.
You can then look into constructing clients - like using a sso key upon original handshake containing unique id and timestamp for client.

Here is a basic example for a chat client -> not the best solution but will give you a somewhat understanding of sockets

You must login or register to view this content.
09-18-2015, 11:36 PM #5
Trefad
I defeated!
Originally posted by StackOverflow View Post
You best bet would be client->server->client rather than client->client
As client->client is not a good thing to learn into.

First of all to get started you need to make 2 socket listeners one being the server and the other being the client - tcp is a good, just like you said.
Then you want to send data from one to the other and vice versa.
You can then look into constructing clients - like using a sso key upon original handshake containing unique id and timestamp for client.

Here is a basic example for a chat client -> not the best solution but will give you a somewhat understanding of sockets

You must login or register to view this content.


Thank you so much! Smile I don't fully understand what you you mean unique id, a log in? Or server? If its a dumb question then damn 😣
09-18-2015, 11:43 PM #6
Scouse Power
Knowledge is power
Originally posted by Trefad View Post
Thank you so much! Smile I don't fully understand what you you mean unique id, a log in? Or server? If its a dumb question then damn ******************


For example if you was making a game you'd generate a unique id when starting which can be in the header of the handshake packet (the first time you send information for example "join chat").
You would do this rather than just sending the username to prevent people logging onto other peoples accounts, etcSmile or you can do ip limitations - log ip on handshake and then only accept from that ip for that user. No question is to dumb.
09-18-2015, 11:56 PM #7
Trefad
I defeated!
Originally posted by StackOverflow View Post
For example if you was making a game you'd generate a unique id when starting which can be in the header of the handshake packet (the first time you send information for example "join chat").
You would do this rather than just sending the username to prevent people logging onto other peoples accounts, etcSmile or you can do ip limitations - log ip on handshake and then only accept from that ip for that user. No question is to dumb.


Thanks bro Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo