> 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
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
[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,
[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