You can try to use something like 'route print'. And get the result of the command. There is your IP Address there.
C:\Documents and Settings\Administrator>route print ====================================================================== +===== Interface List 0x1 ........................... MS TCP Loopback interface 0x10003 ...00 10 a4 11 4d 60 ...... Intel(R) PRO/100+ MiniPCI ====================================================================== +===== ====================================================================== +===== Active Routes: Network Destination Netmask Gateway Interface M +etric 0.0.0.0 0.0.0.0 192.168.55.1 192.168.55.13 + 30 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 + 1 192.168.55.0 255.255.255.0 192.168.55.13 192.168.55.13 + 30 192.168.55.13 255.255.255.255 127.0.0.1 127.0.0.1 + 30 192.168.55.255 255.255.255.255 192.168.55.13 192.168.55.13 + 30 224.0.0.0 240.0.0.0 192.168.55.13 192.168.55.13 + 30 255.255.255.255 255.255.255.255 192.168.55.13 192.168.55.13 + 1 Default Gateway: 192.168.55.1 ====================================================================== +===== Persistent Routes: None C:\Documents and Settings\Administrator>
192.168.55.13 is my IP Address where the netmask is 255.255.255.255 and the gateway is 127.0.0.1.... try to parse the output of this command

In reply to Re: IP Address On Old Systems by nikos
in thread IP Address On Old Systems by dhable

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.