Displaying IP address of a target machine

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Displaying IP address of a target machine

    I've searched for IP, ping, display address and do not come up with anything.

    I have a cold fusion page that currently displays the static IP of my
    workstation. It is href'd with callto://[IP] where [IP} is my IP.
    Unfortunately, recently the DHCP servers in my building have been having
    problems causing my IP to change frequenlty. I use the above "callto" for
    users to launch Net Meeting for weekly sessions I conduct. How do I code to
    ping my machine name and return live/current IP of my workstation to the
    webpage so that users always have a correct link to click?

    Feet2Cold Guest

  2. Similar Questions and Discussions

    1. filecopy from remote machine to local machine
      Hi, I am tryin to copy a tar file from remote machine to local machine using Net:Telnet. I am using the following logic : my(@Out) =...
    2. login that accesses remopte db wont work on that machine but works while on my local machine????!! HELP!
      I knocked up a simple login for a CMS for one of my sites.... now itr will work fine and authemticate with data on the online server by the IP...
    3. Subform not displaying correctly on one machine
      We have several people who use an Access 2002 database, but one of them receives the following error: "The expression is typed incorrectly, or is...
    4. Getting files from a Win 2000 machine to a Windows XP machine
      Hi. I've just bought a machine with Windows XP Pro on it and want tto transfer several thousand files from my Win2000 laptop. The laptop has a LAN...
    5. How to duplicate whole database from one machine to another machine in Windows 2000?
      Would you please what files I have to copy? Thanks. "Ban Spam" <ban-spam@operamail.com> wrote in message...
  3. #2

    Default Re: Displaying IP address of a target machine

    bump
    Feet2Cold Guest

  4. #3

    Default Re: Displaying IP address of a target machine

    [url]http://www.cflib.org/udf.cfm?ID=1003[/url], it should resolve your issue.

    Check out the rest of the site too, these guys are fantastic IMO.
    sillyworm Guest

  5. #4

    Default Re: Displaying IP address of a target machine

    So, your workstation is not running CF, but you want CF server to display your
    current IP? If this is the case, you need to execute a DNS name (of your
    workstation) resolution procedure on the page that displays your IP. Some tags
    available for this. One of them below:
    [url]http://www.cftagstore.com/tags/cfxexec.cfm[/url]

    Mr Black Guest

  6. #5

    Default Re: Displaying IP address of a target machine

    Explain the situation to your network administrator, and have him assign your machine a static IP.
    philh Guest

  7. #6

    Default Re: Displaying IP address of a target machine

    :D

    In a small or medium company that might work. I work in a building of about 7
    thousand people (recently pruned from 9K). We are considered a "satellite"
    office. A Static IP request was submitted. Server Admin laughed. I
    understand. I used to work with them.

    Feet2Cold Guest

  8. #7

    Default Re: Displaying IP address of a target machine

    Sillyworm & Mr Black:

    thanks for the leads, but purchasing add-ons would be only the first hurdle.
    My company is in a "save money" mode. The 2nd hurdle would be getting a waiver
    for non-standard software--like pulling teeth.

    Feet2Cold Guest

  9. #8

    Default Re: Displaying IP address of a target machine

    Feet, Please take a look at my post again, the function I pointed you to, is
    completely free, and open source. I would never point you to any overpriced tag
    or function while a reasonable solution is available. I?d rather try to write
    the code for you than have you spend $ on a problem like this.

    sillyworm Guest

  10. #9

    Default Re: Displaying IP address of a target machine

    Well, non-standard tasks require non-standard (is CF is 'standard'?) tools. As
    about reference submitted by Worm (silly, btw). That UDF returns (maybe, if
    CreateObject works, Java works, etc.) the IP for the local machine. The task
    is to find the current IP of a non-local and non-server machine.

    Mr Black Guest

  11. #10

    Default Re: Displaying IP address of a target machine

    Feet2Cold, Yow. I sympathize. I take it DNS entries are out of the question
    also. Hey, how about that? Have your server run a ping on your UNC and parse
    the STDOUT for the IP. Or something like that.

    philh Guest

  12. #11

    Default Re: Displaying IP address of a target machine

    I'm not sure what your problem is (haha). Seriously, OK it sounds like you
    have ColdFusion server running on another computer, with a page on it with an
    href to your IP, which changes often? You don't have ColdFusion server on your
    computer, and want to know how to get the server to recognize when your IP has
    changed and change the link accordingly. Is that correct? If so, I'd say you
    have two basic options. One is to have a page on the server you hit with your
    web browser. That page would read your IP, then store it in a database, flat
    file, application variable or something on the server. Then the page that
    shows the hyperlink would read that location from wherever you stored it so
    that it could dynamically display your IP. The second option is to basically
    do the same thing, but automate the pinging of the server. There are a whole
    bunch of tools for doing this sort of thing with services like dyndns.org and
    maybe you could repurpose some of the code. You could also run a cron job or
    something (or at in windows although I've never used that) that ran a perl
    script or something else you're familiar with, to ping the web server. In unix
    this would be very easy: create a cron script that runs wget against your
    server's test page. Have it run every 10 minutes or whatever and presto, your
    server always is <= 10 minutes behind on your current IP. - Andrew.

    anclarke Guest

  13. #12

    Default Re: Displaying IP address of a target machine

    contact the service provider I means ISP ONCE TO FIX THIS....
    vaengaivenkat is offline Junior Member
    Join Date
    May 2011
    Location
    INDIA
    Posts
    3

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139