Question: I have a VB script that takes in several parameters that could include spaces using cscript, and I make the call using:

```
nsExec::exec 'cscript.exe "$PATH_TO_FILE\program.vbs" "Something with spaces" "Something else"'

```

Now, I want one of the "Something else" strings to include a double quote character, where the string is 

```
Something " else.

```

I have tried 

```
nsExec::exec 'cscript.exe "$PATH_TO_FILE\program.vbs" "Something with spaces" "Something "" else."'

```

with an escaped " but that did not work, it simply used "Something else" as the string passed in.

Answer: 
It seems that not exactly but `InetAddress` has some isXX() methods like: `isAnyLocalAddress()` and `isSiteLocalAddress()`
If [InetAddress](http://download.oracle.com/javase/1.4.2/docs/api/java/net/InetAddress.html) doesn't work for you then it should be easy enough to translate following [python code](http://pypi.python.org/packages/source/I/IPy/IPy-0.75.tar.gz) to java:

```
IPv4ranges = {
    '0':                'PUBLIC',   # fall back
    '00000000':         'PRIVATE',  # 0/8
    '00001010':         'PRIVATE',  # 10/8
    '01111111':         'PRIVATE',  # 127.0/8
    '1':                'PUBLIC',   # fall back
    '1010100111111110': 'PRIVATE',  # 169.254/16
    '101011000001':     'PRIVATE',  # 172.16/12
    '1100000010101000': 'PRIVATE',  # 192.168/16
    '111':              'RESERVED'  # 224/3
    }

def iptype(self):
    if self._ipversion == 4:
        iprange = IPv4ranges
    elif self._ipversion == 6:
        iprange = IPv6ranges
    else:
        raise ValueError("only IPv4 and IPv6 supported")

    bits = self.strBin()
    for i in xrange(len(bits), 0, -1):
        if bits[:i] in iprange:
            return iprange[bits[:i]]
    return "unknown"

```