1. How to get an IP
- Posted by rforno at tutopia.com Jun 24, 2002
- 385 views
I'd like to get the IP address of someone connected to the Web at the moment, probably through a phone modem, having only his login name, for example rforno at tutopia.com , and then exchange (either download or upload) a small file. Both parties should be willing to exchange the file. This exchange may happen several times a day. Of course, I want to do this through a program (in Euphoria or C/C++). The difficulty lies in the fact that the IP changes each time the other party connects to its server. Obviously this can be done, because for example KazaA, mIRC and other programs do it. As I'm not very conversant in communications, I'm asking any help the group can provide. TIA.
2. Re: How to get an IP
- Posted by Kat <gertie at PELL.NET> Jun 24, 2002
- 391 views
On 24 Jun 2002, at 21:01, rforno at tutopia.com wrote: > > I'd like to get the IP address of someone connected to the Web at the > moment, probably through a phone modem, having only his login name, for > example rforno at tutopia.com , and then exchange (either download or upload) > a > small file. Both parties should be willing to exchange the file. This exchange > may happen several times a day. Of course, I want to do this through a program > (in Euphoria or C/C++). The difficulty lies in the fact that the IP changes > each > time the other party connects to its server. Obviously this can be done, > because > for example KazaA, mIRC and other programs do it. As I'm not very conversant > in > communications, I'm asking any help the group can provide. TIA. Mirc does it because either you are on an irc net with them and sent them a ctcp dccfilesend, or you knew the ip#. File sharing programs share thru a sharing server (with a static ip or static hostname), which the program contacts to let know you are online at what ip#. Only if the logon name is a valid host or ip can you "guess" what the ip is. Kat
3. Re: How to get an IP
- Posted by "Thomas Parslow (PatRat)" <tom at almostobsolete.net> Jun 25, 2002
- 375 views
> I'd like to get the IP address of someone connected to the Web at the > moment, probably through a phone modem, having only his login name, for > example rforno at tutopia.com , and then exchange (either download or upload) > a > small file. Both parties should be willing to exchange the file. This > exchange may happen several times a day. Of course, I want to do this > through a program (in Euphoria or C/C++). The difficulty lies in the fact > that the IP changes each time the other party connects to its server. > Obviously this can be done, because for example KazaA, mIRC and other > programs do it. > As I'm not very conversant in communications, I'm asking any help the group > can provide. > TIA. You'll need some sort of server to assist you in finding each other You could use a CGI script on a web server, whenever the server app starts up it retrieves a CGI script from your web server, this records it's IP. Now when the client connects it can retrieve another CGI script which will contain the ip. Or maybe something like Jabber, in fact if it's only a small amount of data you need to transfer you could do the whole thing via a Jabber server... It would allow you to identify each other by your JIDs (rforno at jabber.org or tom at almostobsolete.net) rather than IPs. My Jabber client (http://marvin-jabber.sourceforge.net/) contains a EU Jabber library, it's not well documented but I could give you a hand with it if you want... Thomas Parslow (PatRat) E-Mail/Jabber: tom at almostobsolete.net ICQ: 26359483