How can a server know its own IP address

From: au.faisal (au.faisal_at_gmail.com)
Date: 09/28/05


Date: 28 Sep 2005 02:12:34 -0700

Hi guys

I am a newbie in socket programming. Can anyone tell me how can a
server know on which IP address it is running.

To make it suppose a webserver is running on computer which has the IP
address 131.100.0.1. How can the webserver get this IP server without
hardcoding.

is there any function for that?

Thanks
Faisal



Relevant Pages

  • Re: How can a server know its own IP address
    ... > I am a newbie in socket programming. ... > server know on which IP address it is running. ... > To make it suppose a webserver is running on computer which has the IP ...
    (comp.unix.programmer)
  • Re: Basic Question (dumb) regarding security
    ... It is not ok to host a public website on your SBS, but it is ok to host ... setup the network and the webserver properly so that only appropriate ... It would be less secure or meaningful to open more holes in ISA so ... Since ISA is an application server, ...
    (microsoft.public.windows.server.sbs)
  • Re: Newbie partitioning question
    ... Or, since this guy is a newbie, just KISS. ... In his first post, he specified an "NFS server", apparently ... >>files, do a complete clean install, and transfer the ... >>any amount of installed software (the partitioning step ...
    (comp.os.linux.misc)
  • Re: hide ip address of website (no domain name)
    ... > webserver from any other programs/scanners/etc? ... > will proxy server installed on the box or using host ... > various parts of it that are not on port 80. ... How about installing on of the open source firewalls in front of it and ...
    (Security-Basics)
  • RE: ViewState vs. Database
    ... webserver, but that seems like the best performance to cost ratio I can come ... Microsoft MSDN Online Support Lead ... You can send feedback directly to my manager at: ... to server, webserver, server to database server..). ...
    (microsoft.public.dotnet.general)