Click to See Complete Forum and Search --> : how to get ISP IP?


Ejaz
November 4th, 2002, 03:33 AM
Dear All,

I would like to know that how can I get the IP address of the ISP to with which I've been connected. Like I can get the IP assigned by the ISP dynimcally but I would like to know the IP of the ISP Server, with which I'm communicating.

Any help in this regards will be highly appriciated. Thanx in advance.

Regards,

Ejaz.

Yves M
November 4th, 2002, 07:00 AM
Do you mean that you would like to get the IP of the DHCP server that assigned you the IP address that you are using ? Can't you see that when you type "ipconfig -a" in a command line window ?

Ha, I just checked, and this does not seem to work. The DHCP server assigns you a gateway (if any) and a DNS (and WINS if applicable) server. But since can be a fixed duration for the lease, your computer should keep a reference to the DHCP server.

I checked around the web and in case you are interested, read these two RFCs about DHCP : RFC 2131 (http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc2131.html) and RFC 1541 (http://www.cis.ohio-state.edu/htbin/rfc/rfc1541.html)

Yves M
November 4th, 2002, 07:19 AM
Actually you can do it by sending a bootp request as a broadcast. See RFC 951 (http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc0951.html) for details.

Ejaz
November 4th, 2002, 09:22 AM
Thanx Yves M,

Your a life saver.

Regards,

Ejaz.