Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


winsock question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat Jul 05, 2008 5:32 pm    Post subject: winsock question Reply with quote

I have a question about ip addresses pertaining to winsock. I understand on like a LAN-chat you can just send data through your private IP addresses (i.e 192.168.1.101). But with other people how do you send data? Do you have to use the public IP address? And how do you obtain their public IP. And stuff like AIM and MSN, how does that work? Does the data get sent to the server, and it holds like, the IP address of the other person (which is on the server?) and text to be sent, or files to be sent, etc, and then it forwards it to the person? And when I say "which is on the server?" I mean that the user ID is in the server and that it is matched up with a publick IP address.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Sat Jul 05, 2008 6:28 pm    Post subject: Re: winsock question Reply with quote

oib111 wrote:
But with other people how do you send data?


You send your data to their router using a specific port; the router then forwards the data to the computer of the person intended.

oib111 wrote:
Do you have to use the public IP address? And how do you obtain their public IP. And stuff like AIM and MSN, how does that work?


Yes. When they connect to the server (i.e. log in), the server marks their IP address, and when an IM is sent to them, the server takes the data and sends it to that IP.

oib111 wrote:
And when I say "which is on the server?" I mean that the user ID is in the server and that it is matched up with a publick IP address.


The user is probably stored in a struct/class that includes information like the IP address, friends, etc.

Edit:

This is more of a theory question than a question pertaining to winsock.

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat Jul 05, 2008 7:32 pm    Post subject: Reply with quote

Ok, well how do you obtain their IP Address?
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Chaosis13
Master Cheater
Reputation: 0

Joined: 14 Aug 2007
Posts: 372

PostPosted: Sat Jul 05, 2008 8:59 pm    Post subject: Reply with quote

lol. Like I said be4, broadcasting would work if it was just on a small network. But if it was people everywhere python would allow you to make an app like that in 1/10 of the time. =) I love python.
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat Jul 05, 2008 9:03 pm    Post subject: Reply with quote

Eh...I don't really care about the time. I'll learn Python when I want to make add-ons for Enso, but until then, I'm sticking with C++. And the question remains, how do I get their IP address?
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Jul 05, 2008 10:07 pm    Post subject: Reply with quote

Messenger programs do not make direct connections unless you have started a conversation with someone already. Instead, you chat between each other using a "redirecting" server.

You -> Server <- Your Friend

When you say something, it gets sent to the server which then handles the packet based on the username, ID, or what ever the IM program has their setup as then sends the message to your friend. There is no connection between you and the other person.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Box
Grandmaster Cheater
Reputation: 0

Joined: 16 Oct 2007
Posts: 541

PostPosted: Sat Jul 05, 2008 10:17 pm    Post subject: Reply with quote

Code:
if sock.state= sckconnected then
label1.caption = sock.remoteip

_________________
zurkei wrote:
Wow box your a real dick, I can't believe I actually thought that you were telling the truth...

Fact: no one tells the truth on cheat engine fourms
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat Jul 05, 2008 10:21 pm    Post subject: Reply with quote

magic cow wrote:
Code:
if sock.state= sckconnected then
label1.caption = sock.remoteip


o.O this is C++ buddy not delphi

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites