I'm just curious if there's a snippet for returning your IP address, for the classic "Your IP address is ___" gimmick.
Is there something out there?
Thanks.
|
1
|
|
|
|
|
2
|
Since I don't have enough reputation to up vote, I'm going to "up vote" binky. That function above is far too much overkill for a simple need. If you want to take it one step further, you can use a function
Then you can just call your function
This is especially if you decide you want to pull the users IP address in multiple locations. |
|||||||||
|
|
1
|
This will return your IP.
|
||
|
|
|
1
|
|
||
|
|