Page 2 of 2
Posted: Thu Mar 10, 2005 5:53 pm
by bacardirigoman
oh... yes... great thank you!
Posted: Sat Apr 16, 2005 9:48 pm
by GeoTrail
Great, thanks olejr. And offcourse to Fred

Posted: Thu Apr 21, 2005 11:40 am
by Dummy
Look at this:
viewtopic.php?p=86862
THAT would be nice!
Posted: Tue Jun 21, 2005 3:55 pm
by dracflamloc
When is this being added fred?
Posted: Fri Jul 22, 2005 11:55 am
by geoff
Thanks for your procedure olejr
Using purebasic functions and pre-defined structures this can be reduced to:
Code: Select all
Procedure.s GetClientIP(ClientID)
s=SizeOf(sockaddr_in)
res=getpeername_(ClientID,@ip.sockaddr_in,@s)
If res = 0
remotip$=IPString(ip\sin_addr)
Else
remotip$ = ""
EndIf
ProcedureReturn remotip$
EndProcedure
Posted: Fri Jul 22, 2005 1:45 pm
by Gansta93
Right, Fred said that it would be included, but it is not... when Fred ?
Posted: Sun Aug 21, 2005 4:41 am
by Shannara
I third this question .. couldn't find a reference in the pb 3.94 help file. I could be missing it?
Re:
Posted: Fri Feb 21, 2020 11:58 am
by BarryG
Fred wrote:Ok, it will be added.
Bump.
Re: get ip address
Posted: Fri Feb 21, 2020 6:08 pm
by freak
Re: get ip address
Posted: Sat Feb 22, 2020 12:50 am
by BarryG
I didn't know about it. Will that return your external IP address like the topic says? If so, how do we use it? I don't understand the manual for it as I'm not network-savvy.
Re: get ip address
Posted: Sat Feb 22, 2020 9:47 am
by freak
The function does what is discussed in this topic: returns the IP of the client connected to your network server. Not your own.
Why do you bump a 15 year old topic if you don't even understand what is asked there? The issue discussed here has been solved for almost as long as the topic exists.
What you are asking for is currently being discussed here:
viewtopic.php?f=13&t=74663