English 中文(简体)
如何以灵活方式找到系统(当地)IP地址?
原标题:How to find system(local) IP address in Flex?

I m working on a project.In that we can register complaints to the IT department about system failure or software failure.
In our company each computer is having unique system(local)IP address

I want my complaint to be registered with that address, by which IT person can identify my system and repair it.
I found many on SO but none solved my problem. Are there any solutions for that? Any suggestions will be very helpful.

最佳回答

You didn t specify if this was a browser based app or a desktop based AIR App.

基于浏览器的闪电器无法使用IP地址。 然而,当闪电器提供边远服务时,作为农研组变量,通常可以向这一要求提供IP地址。 你们如何获取这些国际地理信息变量将取决于您选择的服务器辅助语言。

我并不认为,土著和部落居民可以进入土著定居地,然而,你们应该能够利用土著领地或土著领地等一些东西进入定居地。 你们必须撰写一些具体操作系统编码,以便照此办理。

问题回答

this is the way I get the ip-address from a Flex AIR client:

public static function getClientIPAddress (version:String):String {
        var ni:NetworkInfo = NetworkInfo.networkInfo;
        var interfaceVector:Vector.<NetworkInterface> = ni.findInterfaces();
        var currentNetwork:NetworkInterface;

        for each (var networkInt:NetworkInterface in interfaceVector) {
            if (networkInt.active) {
                for each (var address:InterfaceAddress in networkInt.addresses) {
                    if (address.ipVersion == version) {
                        return address.address;
                    }
                }
            }
        }
        return "";
    }

我们不能单靠闪电分子这样做。 此时此刻,你不得不接受这一答复。 如果谷歌这样的话,你会发现许多专家因Adobe的这一限制而感到沮丧。

www.un.org/Depts/DGACM/index_spanish.htm 另一种答案是正确的,即,如果你使用Adobe Air,或者采用其他非Adobe方法,例如国际地理信息公司、PHP公司、 Java、NET等,则有办法这样做。

如果你想问一下如何做到这一点。 NET,请在另一个问题上张贴。 (最初提出的问题是一个好的问题,应该像现在这样保持SO。)





相关问题
Disable button tooltip in AS3

I want to disable the tooltip on certain buttons. The tooltip manager seems to be an all or nothing solution. Is it possible to disable the tooltip for just one or two buttons?

Multiple Remote call made simultenously

I was making multiple remote calls and they are done sequentially and when I am getting a result event back it s triggering calls to all the methods with ResultEvent as an argument . I am supposed to ...

Attaching a property to an event in Flex/AS3

I have a parameter that needs to be passed along with an event. After unsuccessful attempts to place it on the type by extending the class, I ve been advised in another SO question to write a custom ...

Clearing RSL in Cache

I have built a flex application which has a "main" project and it is assosciated with a few RSL s which are loaded and cached once i run my "main" application. The problem i am facing is that the ...

What s a good way of deserializing data into mock objects?

I m writing a mock backend service for my flex application. Because I will likely need to add/edit/modify the mock data over time, I d prefer not to generate the data in code like this: var mockData =...

AS3 try/catch out of memory

I m loading a few huge images on my flex/as3 app, but I can t manage to catch the error when the flash player runs out of memory. Here is the what I was thinking might work (I use ???? because i dont ...

热门标签