Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

NetworkCollection

Guides

  • Network Collection

Symbols

  • CompressIPAddress
  • ConvertToIPV4Address
  • IPAddressAdd
  • IPAddressAllHosts
  • IPAddressBroadcastAddress
  • IPAddressCompareNetworks
  • IPAddressGlobalQ
  • IPAddressHostCount
  • IPAddressHosts
  • IPAddressIPv4Mapped
  • IPAddressLoopbackQ
  • IPAddressMulticastQ
  • IPAddressNetworkAddress
  • IPAddressNetworkMask
  • IPAddressOverlaps
  • IPAddressPrivateQ
  • IPAddressSubnetMask
  • IPAddressSubnet
  • IPAddressSubnetOf
  • IPAddressSubnets
  • IPAddressSupernetDiff
  • IPAddressSupernet
  • IPAddressSupernetOf
  • IPAddressSupernetPrefix
  • IPAddressToByteArray
  • IPAddressVersion
  • IPNetwork
  • ReverseIPAddress
  • TeredoAddressCheck
  • UncompressIPAddress
WolframExternalFunctions`NetworkCollection`
CompressIPAddress
​
CompressIPAddress
[address]
returns the compressed form of the given IP address.
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
Compress an IPV6 address:
In[1]:=
CompressIPAddress
["fe80:0000:0000:0000:0000:0000:0000:1234"]
Out[1]=
IPAddress[fe80::1234]
Or with
IPAddress
:
In[2]:=
CompressIPAddress
[IPAddress["fe80:0000:0000:0000:0000:0000:0000:1234"]]
Out[2]=
IPAddress[fe80::1234]
Uncompress it:
In[3]:=
UncompressIPAddress
[%]
Out[3]=
IPAddress[fe80:0000:0000:0000:0000:0000:0000:1234]
IPV4 addresses are not compressible:
In[4]:=
CompressIPAddress
["127.0.0.1"]
Out[4]=
IPAddress[127.0.0.1]
SeeAlso
IPAddress
▪
UncompressIPAddress
RelatedGuides
▪
Network Collection
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com