Jump to content


Photo

Local Ip Dll


  • Please log in to reply
10 replies to this topic

#1 acejack

acejack

    GMC Member

  • GMC Member
  • 75 posts
  • Version:GM8

Posted 15 May 2010 - 01:01 PM

Local IP DLL
What does it do?
Very simple, this DLL gets the local IP address of the computer your using. This is an alternative way from the in-built game maker function mplay_ipaddress(); which is very slow. This DLL allows you to get the local IP address in 0.03 seconds.

Where do i get it?
There are two links below to get it! Game Maker 7/8 source included:
Download localip_rar.rar
Download localip_zip.zip

Hope this Helps :(

  • 0

#2 halo shg

halo shg

    Programmer

  • GMC Member
  • 600 posts
  • Version:GM:Studio

Posted 18 May 2010 - 10:08 PM

I don't see how the built in function is slow. I just did a benchmark, and mplay_ipadress(); appears to be returning in 1.3233 ms average over 10000 iterations. Remember 0.03 is still 30 ms and including all the overhead, I'm confused as to why you would need this. I'm just trying to find a use for this DLL over the built in functions.

Edited by halo shg, 18 May 2010 - 10:10 PM.

  • 0

Dev: MacBook Pro Retina Display 15" w/ Win7 (Parallels) running GM Studio: Master and GM8 (GMS: ANDROID JAVA EXTENSIONS ARE HERE!)
Devices: Samsung Galaxy Note II / Samsung Galaxy S III / iPhone 4S / iPad 2 / iPod Touch 5th gen



Politics' is made up of two words, 'poli,' which is Greek for 'many,' and 'tics,' which are blood-sucking insects.


-Gore Vidal


#3 Hockeyflyers

Hockeyflyers

    Hockeyplayer Games

  • New Member
  • 1108 posts
  • Version:Unknown

Posted 19 May 2010 - 03:18 AM

Why do you need to get the ip address a fraction of a second faster anyway?
  • 3

#4 acejack

acejack

    GMC Member

  • GMC Member
  • 75 posts
  • Version:GM8

Posted 19 May 2010 - 04:23 PM

it makes a big difference to me, the mplay function takes 1-5 seconds. this is the same speed evey time.

Why do you need to get the ip address a fraction of a second faster anyway?


  • 0

#5 Tha_14

Tha_14

    GMC Member

  • New Member
  • 174 posts
  • Version:GM8.1

Posted 17 April 2011 - 09:18 AM

Very good and finds the ip address faster than the gm function.
Thanks man,my game is faster on online now.
  • 0

Posted Image


#6 Spreeadhaz

Spreeadhaz

    GMC Member

  • New Member
  • 32 posts
  • Version:GM8

Posted 01 February 2012 - 05:21 AM

this dont work on my PC, when i open the 'Local Ip Speed Test.exe'
it shows me this:

ERROR in
action number 1
of Create Event
for object obj_localip:

Error defining an external function.

I didn't modify anything, and it show me this error :sad:
  • 0

#7 orange451

orange451

    GMC Member

  • GMC Member
  • 1411 posts
  • Version:GM8.1

Posted 01 February 2012 - 01:25 PM

Very good and finds the ip address faster than the gm function.
Thanks man,my game is faster on online now.



If your online game was using 39dll, you could have acquired the ip through one of their functions, just as fast :P
  • 0

bC14QqN.pngNrTFeil.png


#8 Drara

Drara

    GMC Member

  • GMC Member
  • 325 posts

Posted 29 July 2012 - 01:26 PM

Hi,

your dll is amazing. Fast and does what it is meant to. In addition it returns the local self-ip (127.0.0.1) if there's no connection what is very useful for checking whether a computer is connected to the internet or not.

Hope you do not mind me having made an Extension out of this DLL. It was mostly for personal purpose because I didn't want to add one extra file just for this purpose.

If you'd like, I'd post it here for others as well.
  • 0

#9 Mania

Mania

    GMC Member

  • GMC Member
  • 231 posts
  • Version:GM:Studio

Posted 27 May 2014 - 02:38 PM

The download links do not work anymore. Anyone have this saved up somewhere? GM doesn't seem to offer any tools to get an IP address atm. :/


  • 0

gb_greenlight.png


#10 Razon

Razon

    GMC Member

  • GMC Member
  • 268 posts
  • Version:GM:Studio

Posted 20 June 2014 - 05:53 AM

Here's a mirror link for the DLL.

http://www.mediafire...68aznhtpq4raop6


  • 0

#11 Mania

Mania

    GMC Member

  • GMC Member
  • 231 posts
  • Version:GM:Studio

Posted 20 July 2014 - 10:58 AM

Here's a mirror link for the DLL.

http://www.mediafire...68aznhtpq4raop6

 

I'm not able to import the project (7 or 8). The executable works like a charm though. Anyone have a working version of this?


  • 0

gb_greenlight.png