Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding Caller IP ?

Status
Not open for further replies.

alan232

Programmer
May 19, 2004
144
US
Hi All;

In a network (local), how do I find the caller ip address of Machine B when it uses the native WinSock to reach Machine A? (i.e., Machine A is using WinSock as well and needs to know the IP Address of who just connected.)

I'm using the native WinSock with VFP 6 SP5 and am trying to avoid explicitly sending the IP address with the connection. (I bet the ethernet package no doubt has this data encoded in it).

I'm extremely new to all this and appreciate any help,
Thanks,
Alan
 
Since you're using Winsock, you can use see Machine B's IP by querying the 'remoteHostIP' property.

Take a look at the "chat" utility on my website. Follow the link by my signature and scroll down until you find it. It may be of some use as an example.


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top