Search:

Type: Posts; User: Jonathan_C

Search: Search took 0.10 seconds.

  1. Replies
    1
    Views
    2,755

    Re: Remove last digits of an IP address.

    Found a fix:



    import java.net.*;
    import java.io.*;

    public class Foo{
    public static void main (String[] args){
    try {
  2. Replies
    1
    Views
    2,755

    Remove last digits of an IP address.

    I'm wanting to remove the last digits of an IP after the final period, i.e.

    192.168.1.2

    would be made to: 192.168.1
    similarly 192.168.1.22 would be: 192.168.1

    I'm getting the IP using the...
Results 1 to 2 of 2