Re: How to get an IP

new topic     » goto parent     » topic index » view thread      » older message » newer message

> 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu