| 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?
|
Posted: Sat Jul 05, 2008 5:32 pm Post subject: winsock question |
|
|
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 |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Sat Jul 05, 2008 6:28 pm Post subject: Re: winsock question |
|
|
| 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.
_________________
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sat Jul 05, 2008 7:32 pm Post subject: |
|
|
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 |
|
 |
Chaosis13 Master Cheater
Reputation: 0
Joined: 14 Aug 2007 Posts: 372
|
Posted: Sat Jul 05, 2008 8:59 pm Post subject: |
|
|
| 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 |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sat Jul 05, 2008 9:03 pm Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sat Jul 05, 2008 10:07 pm Post subject: |
|
|
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 |
|
 |
Box Grandmaster Cheater
Reputation: 0
Joined: 16 Oct 2007 Posts: 541
|
Posted: Sat Jul 05, 2008 10:17 pm Post subject: |
|
|
| 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 |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sat Jul 05, 2008 10:21 pm Post subject: |
|
|
| 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 |
|
 |
|