I have a user enter an IP address that is being written to a file in the form of
10.x.y.50

I need to make another IP address from the user input IP address to take the form of 10.(x+10).(y+15).50

For example,
If the user inputs the IP address as "10.20.30.50"

The text file should appear as...

IPAddress=10.20.30.50
IPAddress2=10.30.45.50


Any ideas how to do this??

Code:
Private Sub Save_Click()
  Dim path As String
    path = "C:\test.ini"                                            ' The file to write to
    Dim ss As String
    ss = FreeFile
    If FExist(path) Then
        Open path For Output As #ss
    Else
        Open path For Output As #ss
    End If

        IP = IPAddr.Text
        Print #ss, "IPAddress=" & IPAddress.Text             'Takes our user input IP
        Print #ss, "IPAddress2="                               'HELP!!!