Search:

Type: Posts; User: Jonathan_C

Search: Search took 0.13 seconds.

  1. Replies
    3
    Views
    1,592

    Re: If statement not returning anything

    Thanks
    That worked perfectly!
  2. Replies
    3
    Views
    1,592

    If statement not returning anything

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

    public class Foo{
    public static void main (String[] args)
    {
    try {
    InetAddress thisIp = InetAddress.getLocalHost();
    String[] result =...
  3. Replies
    1
    Views
    2,737

    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 {
  4. Replies
    1
    Views
    2,737

    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...
  5. Replies
    2
    Views
    1,565

    Re: Searching network for server

    That's why i was wondering :)

    So i could simply use a loop to go through each ip?

    so say the range started at 192.168.1.2

    i could just increment the last digit? And if a server is found, it...
  6. Replies
    2
    Views
    1,565

    Searching network for server

    I've been pondering this for a while, and so i decided to join these forums to see if one of you could possibly point me in the right direction;

    I'm wondering whether it's possible to search the...
Results 1 to 6 of 6