Find my IP Address?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 327
- Joined: Sun Apr 15, 2012 1:17 am
- Location: USA
- Contact:
Find my IP Address?
Is there a way to find my IP address?
The dictionary has some commands but they require an open socket. I just want to find out what my computer's IP address is without starting a server up and connecting to it
The dictionary has some commands but they require an open socket. I just want to find out what my computer's IP address is without starting a server up and connecting to it
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/
-
- Posts: 64
- Joined: Fri Apr 26, 2013 8:38 am
Re: Find my IP Address?
You use the hostName along with the hostNameToAddress functioon.Newbie4 wrote:Is there a way to find my IP address?
The dictionary has some commands but they require an open socket. I just want to find out what my computer's IP address is without starting a server up and connecting to it
Code: Select all
on mouseUp
answer the hostNameToAddress of the hostName
end mouseUp
Learning LiveCode, one step at a time.
-
- VIP Livecode Opensource Backer
- Posts: 327
- Joined: Sun Apr 15, 2012 1:17 am
- Location: USA
- Contact:
Re: Find my IP Address?
Thank you. I would never have figured that out on my own in a million years.
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/
-
- Posts: 64
- Joined: Fri Apr 26, 2013 8:38 am
Re: Find my IP Address?
The Dictionary does leave a lot to be desired.Newbie4 wrote:Thank you. I would never have figured that out on my own in a million years.
Learning LiveCode, one step at a time.
Re: Find my IP Address?
Hi,
The hostname is nice, but if you want to find the global IP address, the easiest way is to use a web service:
Best,
Mark
The hostname is nice, but if you want to find the global IP address, the easiest way is to use a web service:
Code: Select all
put URL "http://qery.us/iptest.php"
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- VIP Livecode Opensource Backer
- Posts: 184
- Joined: Wed Apr 10, 2013 5:09 pm
Re: Find my IP Address?
That doesn't seem to work for me. I just get http://qery.us/iptest.php as if its a normal put and not put URL.Mark wrote:Hi,
The hostname is nice, but if you want to find the global IP address, the easiest way is to use a web service:Best,Code: Select all
put URL "http://qery.us/iptest.php"
Mark
Andrew
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: Find my IP Address?
Works for me.
Simon
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: Find my IP Address?
Works for me.
Simon
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- VIP Livecode Opensource Backer
- Posts: 184
- Joined: Wed Apr 10, 2013 5:09 pm
Re: Find my IP Address?
Downloaded LiveCode open source, and now it works!
Re: Find my IP Address?
Hi,
Just to be clear, qery.us works with any version of LiveCode, open-source or not.
Kind regards,
Mark
Just to be clear, qery.us works with any version of LiveCode, open-source or not.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- VIP Livecode Opensource Backer
- Posts: 184
- Joined: Wed Apr 10, 2013 5:09 pm
Re: Find my IP Address?
Oh,
I'll check on Wednesday when I get back to the Commercial LiveCode.
Andrew
I'll check on Wednesday when I get back to the Commercial LiveCode.
Andrew
Re: Find my IP Address?
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
Re: Find my IP Address?
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
-
- VIP Livecode Opensource Backer
- Posts: 9834
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Find my IP Address?
I realize the OP was looking for an answer that wasn't dependent on a server, but since the nature of the task almost requires an external server and relying on other people's servers may be dodgy, if you have a server with LC Server installed you can use this:
The bigger question here is: why is the address needed?
Code: Select all
<?lc put put $_SERVER["REMOTE_ADDR"] ?>
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn