Re: How can a server know its own IP address

From: Bjorn Reese (breese_at_see.signature)
Date: 09/28/05


Date: Wed, 28 Sep 2005 21:33:20 +0200

au.faisal wrote:

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

Use getsockname() once a connection has been established.

-- 
mail1dotstofanetdotdk


Relevant Pages

  • Re: INADDR_ANY
    ... But I know the real address which my server uses is ... that address is, you'll have to actually make a connection, and ... then use getsockname() on the socket to find out the socket's ...
    (comp.unix.solaris)
  • Re: Outgoing POP3 email missing/lost/not received
    ... Funny thing is that I have had this ISP for 8 years and it has always been ... It looks like when you last ran CEICW, you set the ISP's mail server to: ... Internet Connection Wizard. ... After the wizard completes, the following network connection ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot connect client to server 2003
    ... you need to reconfigure the IP schema of your SBS ... On the SBS 2003 Server open the Server Management console. ... On the Connection Type page, click Broadband, and then click Next. ... Alternate DNS server, type the IP addresses that are provided by your ISP ...
    (microsoft.public.windows.server.sbs)
  • Re: Outgoing POP3 email missing/lost/not received
    ... ISP's mail server instead of the domain name on the ... SUMMARY OF SETTINGS FOR CONFIGURE E-MAIL AND INTERNET ... Internet Connection Wizard. ... After the wizard completes, the following network connection ...
    (microsoft.public.windows.server.sbs)
  • Re: Networking Question - VLANs on SBS 2003 Premium SP1
    ... port on the old router so I now have a segregated WLAN. ... be sure you do not enable any DHCP server in internal network. ... On the Connection Type page, click Broadband, and then click Next. ... On the Network Connection, You must enable and configure the network ...
    (microsoft.public.windows.server.sbs)