Page 1 of 1
Get IP addresses of connected clients
Posted: Sun Jul 04, 2004 5:38 pm
by BrendanE
Is there a way to get the IP of a connected client using the client ID using PB's networking functions?
Posted: Sun Jul 04, 2004 5:54 pm
by Pupil
There's no PB native way, if that's what you want but you can use API to get the ip from a client id. Search for "GetPeerName" and you'll find how to use API to obtain ip address of a client...
Re: Get IP addresses of connected clients
Posted: Sun Jul 04, 2004 7:42 pm
by NoahPhense
BrendanE wrote:Is there a way to get the IP of a connected client using the client ID using PB's networking functions?
This works great.
viewtopic.php?t=7197
- np
Posted: Mon Jul 05, 2004 12:10 am
by BrendanE
Thanks fellas, works a treat!
Posted: Sat Oct 23, 2004 8:43 pm
by Shannara
That link looks nice, but do you have one that actually returns an ip address instead of a random string of numbers?
Posted: Sun Oct 24, 2004 1:59 am
by DoubleDutch
I've used that code before and it works just fine.
You may need to reinstall or something???
Posted: Sun Oct 24, 2004 9:10 am
by Gansta93
I searched that yesterday, but nobody answer me... may be because of my english but in CodeArchiv, in the directory "CodeArchiv\Internet&Co\InternetConnect\", there a code called "GetRemoteIP.pb" which is interesting. You can get the local IP, and the remote IP.
I will create a library, and I'll include this function.
Is my english so bad?????
