Determining Real IP Address of Firewall

Sharky Forums


Results 1 to 6 of 6

Thread: Determining Real IP Address of Firewall

  1. #1
    Expensive Sushi
    Join Date
    Jun 2001
    Posts
    13

    Angry Determining Real IP Address of Firewall

    I'm using a cable modem based internet service plugged into a small Linksys DSL/Cable router with built in DHCP server and ethernet switch.

    Basically, I enabled port forwarding on the router to allow external users to get in to a machine on the private network. Unfortunately, the IP address handed out by the cable company is dynamic. I need to be able to determine my real IP (i.e. the router's real IP).

    I was thinking of writing a small perl script (executing in a cron job) that opens up a cgi based page on a public machine on the internet that records the remote host header then have that perl script email me the address.

    I was hoping that someone could tell me a better was of doing this using some sort of IP family protocol such as ICMP to determine the true address of my firewall without resorting to trickery.

  2. #2
    Hammerhead Shark
    Join Date
    Oct 2000
    Location
    Toronto, Canada
    Posts
    1,493

    Post

    should have posted this on network foruM?

    ------------------
    DHAHL3seasons GP:73 G:121 A:55 Pts:176 GWG:12 +/-:184
    UWSWA1season GP:9 G:12 A:8 Pts:20 GWG:3 +/-:-3

    uwcdc.com or namgor.com
    DHAHL3seasons GP:73 G:121 A:55 Pts:176 GWG:12 +/-:184
    UWSWA6seasons GP:41 G:53 A:46 Pts:99 GWG:5 +/-:-25
    MCBHL3seasons GP:14 G:20 A:8 Pts:28 GWG:4 +/-:19

    uwcdc.com or monkis.com

  3. #3
    Ursus Arctos Moderatis Grizzly's Avatar
    Join Date
    Sep 2000
    Location
    Providence, RI USA
    Posts
    3,077

    Post

    Simple...go here:
    http://www.showmyip.com/


    That's your IP.

  4. #4
    Stormtrooper Mod Pinky's Avatar
    Join Date
    Oct 2000
    Posts
    2,971

    Post

    Originally posted by Grizzly:
    Simple...go here:
    http://www.showmyip.com/


    That's your IP.
    Hey that's pretty cool, Griz'.

    Doesn't that router also come with the ability to manage it from a browser on a computer connected to it? That would tell the external IP as well.

    ------------------
    Embrace this moment. Remember we are eternal. All this pain is an illusion.

    [the man] [the real man] [the specs]

    Proofread carefully to see if you any words out.

    [the rules]

  5. #5
    Expensive Sushi
    Join Date
    Jun 2001
    Posts
    13

    Post

    I think I know how to do what showmyip.com does. From what I can see all it does is print out a remote host http header in a cgi script. That's easy.

    What I can't figure out how to do is to actually query the router for the IP address of its external interface. How would I get that accomplished?

  6. #6
    Ursus Arctos Moderatis Grizzly's Avatar
    Join Date
    Sep 2000
    Location
    Providence, RI USA
    Posts
    3,077

    Post

    Originally posted by sajidraza:
    I think I know how to do what showmyip.com does. From what I can see all it does is print out a remote host http header in a cgi script. That's easy.

    What I can't figure out how to do is to actually query the router for the IP address of its external interface. How would I get that accomplished?
    Actually it uses a built-in PHP variable

    But yeah...that's exactly what your IP is. Your router's external IP is exactly what that web page is telling you. Any computer on your LAN, when browsing the web, will share that same IP.

    Make sense?


    But also, as Pinky alluded to above, you can access your router's control panel and view it from there as well:

    Simply click here: http://192.168.1.1/

    Login, then click on the "status" tab up top.
    All information listed under "WAN" is your router's external config.

    [This message has been edited by Grizzly (edited July 01, 2001).]

Posting Permissions

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