Welcome EcrtDrspm,
The first thing you must do is to get the IP address in useable form.
code:
  ; Builds the IP address in a usable format.
$IP1 = ltrim(SubStr(@IPADDRESS0, 1, 3))
$IP2 = LTRIM(SUBSTR(@IPADDRESS0, 5, 3))
$IP3 = LTRIM(SUBSTR(@IPADDRESS0, 9, 3))
$IP4 = LTRIM(SUBSTR(@IPADDRESS0, 13, 3))
; The trimmed IP address is rebuild of the four octets, again seperated by dots...
$MyIP=$IP1 + "." + $IP2 + "." + $IP3 + "." + $IP4


Next, once it is in this form, you can work with it.
code:
$SMSIPSeg = "164.156.951"
select
CASE $CurrentIPSeg = "164.157. 17"
$AVSWServer = "\\server\AVSW\Win95"
endselect

_________________________
You have at least 2 choices. Each choice changes your destiny. Choose wisely!