Re: How can I get the IP address of the host Web Server into a Session variable?



"John Kotuby" <jkotuby75@xxxxxxxxxxx> wrote in message news:eVYboS44IHA.4272@xxxxxxxxxxxxxxxxxxxxxxx

What I am really looking for is the Public IP Address that is used in the request to get to the Router that then finds the Server behind the firewall.

Hmm - if the box was connected to the Internet, it would be simple enough to fetch its IP address as seen by the outside world by inspecting the HttpResponse returned from something like: http://www.whatismyip.org/

However, as Bruce has explained, because of the NAT and firewall in the equation it's going to be pretty much impossible to determine this in this case...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

.



Relevant Pages

  • Re: loss of SOME connectivity
    ... I "think" it is DNS. ... Yes, I can ping the router, AND the ISP DNS. ... I cannot connect the inet cable directly to the server because the inet is ... MS firewall not started. ...
    (microsoft.public.windows.server.sbs)
  • Re: IP Addressing
    ... Address of the ISA server? ... firewall and router). ... On the firewall create a static NAT entry as I wrote ...
    (comp.dcom.sys.cisco)
  • Re: Still cant connect to RWW or OWA remotely
    ... Re-running the CEICW, disabling the firewall, then re-running CEICW again, ... "Cannot find server or DNS Error". ... the DSL router 4-port switch. ... of the two NICs by clicking the Advanced tabs, ...
    (microsoft.public.windows.server.sbs)
  • Re: VPN suggestions requested
    ... > connecting to the Internet through a cheap basic broadband router. ... necessarily mean you have to pop in a firewall, ... also mean only to secure the W2K server. ...
    (comp.security.firewalls)
  • Re: CEICW fails at firewall config
    ... Do you or do you not have ISA 2000 or ISA 2004 installed on the SBS server? ... Do you have 2 NICs in the SBS? ... CEICW fails on firewall configuration every time. ... >>> Call to Creating the protected networks access rule returned ok. ...
    (microsoft.public.windows.server.sbs)