Koozali.org: home of the SME Server

Display servers wan ip on primary web page

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Display servers wan ip on primary web page
« on: March 16, 2009, 01:39:34 PM »
On sme's behind dynamic dsl is there a way to display the servers ip on the primary web page?

(dyndns is great but how to reveal new ip without logging in?)
"If you don't know what you want, you end up with a lot you don't."

Offline Craig Cabrey

  • ****
  • 79
  • +0/-0
Re: Display servers wan ip on primary web page
« Reply #1 on: March 16, 2009, 03:04:51 PM »
You could just iframe this:

http://checkip.dyndns.org/

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: Display servers wan ip on primary web page
« Reply #2 on: March 16, 2009, 05:59:38 PM »
That only shows _your_ ip - not the servers ....
"If you don't know what you want, you end up with a lot you don't."

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Display servers wan ip on primary web page
« Reply #3 on: March 16, 2009, 08:46:10 PM »
hi

what ip are you talking about? could you please clarify your setup and your needs?

thank you
Ciao
Stefano


Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Display servers wan ip on primary web page
« Reply #4 on: March 16, 2009, 09:15:15 PM »
gbentley

If you use the ddclient contrib to manage the dynamic IP, then it emails admin when the IP changes.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: Display servers wan ip on primary web page
« Reply #5 on: March 16, 2009, 09:36:56 PM »
gbentley

If you use the ddclient contrib to manage the dynamic IP, then it emails admin when the IP changes.

Think ddclient only works in gateway mode - this is server only.

Neno - am talking about the ip address allocated by the adsl isp.

I have tried a few perl scripts but get error messages and am
not really up on perl enough to understand why.


« Last Edit: March 16, 2009, 09:40:20 PM by gbentley »
"If you don't know what you want, you end up with a lot you don't."

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Display servers wan ip on primary web page
« Reply #6 on: March 16, 2009, 09:40:39 PM »
gbentley

I'm pretty sure ddclient works in gateway & server or server only modes.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: Display servers wan ip on primary web page
« Reply #7 on: March 16, 2009, 09:55:55 PM »
Either way, Im pretty happy with letting the router update Dyndns, and I can log into server manager using the hostname created on the dyndns account however to vpn you need to use the ip address and using dyndns doesnt reveal it.

Surely there must be a neat bit of perl / php etc to do this?
"If you don't know what you want, you end up with a lot you don't."

Offline jdavey

  • ***
  • 43
  • +0/-0
Re: Display servers wan ip on primary web page
« Reply #8 on: March 16, 2009, 10:14:10 PM »
Traceroute is your friend.

Windows command - tracert FQDN
Linux command -traceroute FQDN
...

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Display servers wan ip on primary web page
« Reply #9 on: March 16, 2009, 10:31:25 PM »
gbentley

Quote
....however to vpn you need to use the ip address...

What makes you say that ?
I VPN to a sme using hostname, on a dynamic IP & with dyndns hosts.
If WINS is configured correctly in all your VPN connections points, then your router should respond to the hostname domain.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: Display servers wan ip on primary web page
« Reply #10 on: March 16, 2009, 10:34:31 PM »
gbentley

What makes you say that ?


Because when I tried to setup a pptp from XP using the hostname it didnt work.

I have just tried this again and now it works fine. Thanks Mary. Sorry list!


"If you don't know what you want, you end up with a lot you don't."

Offline Craig Cabrey

  • ****
  • 79
  • +0/-0
Re: Display servers wan ip on primary web page
« Reply #11 on: March 17, 2009, 02:02:09 AM »
That only shows _your_ ip - not the servers ....

It should show the external (public) IP which is what you need to VPN in (unless I'm misunderstanding you).

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: Display servers wan ip on primary web page
« Reply #12 on: March 17, 2009, 07:29:42 AM »
It should show the external (public) IP which is what you need to VPN in (unless I'm misunderstanding you).

No, it only shows the referring ip
"If you don't know what you want, you end up with a lot you don't."

Offline Craig Cabrey

  • ****
  • 79
  • +0/-0
Re: Display servers wan ip on primary web page
« Reply #13 on: March 17, 2009, 05:16:22 PM »
No, it only shows the referring ip

Try going to it from the server using links.

Offline thomasch

  • *
  • 232
  • +0/-0
Re: Display servers wan ip on primary web page
« Reply #14 on: March 18, 2009, 04:02:53 AM »
http://whatismyip.com/ will reveal your adsl WAN side IP address (IP address assigned by your ISP).

google "php screen scraper" to find script to extract this IP address from the web page.

thomasch