Re: [ilugd] How to find client's IP address (or name)

2005-03-02 Thread Gaurav Vaish
> To know the client IP and port through that client is connected to your > system you can use the netstat command. Try: $ netstat -n | grep CONNECTED Will give you a list of live connections "-n" options is to disable reverse-dns lookup allowing faster listing. Once you grab the IPs, you may g

Re: [ilugd] How to find client's IP address (or name)

2005-03-02 Thread Subhamoy Mukherjee
On Tue, 01 Mar 2005 Kapoor,Nishikant wrote : >[Sorry for cross posting]. > >I have a very basic server written in C. It creates a socket, binds it to a >port and listens for client's requests. I am trying to find the IP address of >the client when the client attempts to make a connection. Do

Re: [ilugd] How to find client's IP address (or name)

2005-03-01 Thread Linux Lingam
[snip] > > I have a very basic server written in C. [snip] > Here is the trimmed code (can send complete code if you so desire). > > Tanks, > Nishi > [snip] er... nishi, you just posted some code snippets on a public mailing list. may i ask, is the code under gpl, lgpl, bsd, or apache license,

[ilugd] How to find client's IP address (or name)

2005-03-01 Thread Kapoor, Nishikant
[Sorry for cross posting]. I have a very basic server written in C. It creates a socket, binds it to a port and listens for client's requests. I am trying to find the IP address of the client when the client attempts to make a connection. Does anyone know how to do that? (I was hoping to have c