Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-14-2008, 12:34 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default How to get ip

How can swfkit get ip ?
Reply With Quote
  #2 (permalink)  
Old 04-14-2008, 01:57 PM
Junior Member
 
Join Date: Apr 2008
Posts: 5
Default Re: How to get ip

Hi,

Have a look here : http://www.swfkit.com/swfkit/doc/manual/node751.html
Reply With Quote
  #3 (permalink)  
Old 04-14-2008, 08:05 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: How to get ip

Hi, thanx, ive seen that and got undefined ???
Reply With Quote
  #4 (permalink)  
Old 04-15-2008, 11:44 AM
Junior Member
 
Join Date: Apr 2008
Posts: 5
Default Re: How to get ip

Hi,

It works fine for me after I change "inet" to "Inet" (capital i )
Reply With Quote
  #5 (permalink)  
Old 04-15-2008, 03:12 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: How to get ip

Nope, dosent work on this side
Reply With Quote
  #6 (permalink)  
Old 04-15-2008, 10:07 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: How to get ip

Code:
var inet = new Inet;
dns = inet.getDNS();
for (i = 0; i < dns.length; i++)
{
  trace(dns[i]);
}
ic = inet.getIPConfig();
trace("Interface Number: " + ic.ifNum.toString());
trace("");
for (i = 0; i < ic.ifNum; i++)
{
  trace("Interface Number " + i.toString() + ":");
  trace("\tDesc:\t\t\t" + ic.ifDesc(i));
  trace("\tType: \t\t\t" + ic.ifType(i));
  trace("\tIP: \t\t\t" + ic.ifIP(i)[0]);
  trace("\tIP Mask: \t\t" + ic.ifIPMask(i)[0]);
  trace("\tDefault Gateway: \t\t" + ic.ifDefaultGateway(i));
  trace("\tMac: \t\t\t" + ic.ifMac(i));
}
Reply With Quote
  #7 (permalink)  
Old 04-17-2008, 02:18 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: How to get ip

Worked just fine

Thank you!
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:10 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.