S
Steven Nagy
Howdy,
I want to write an application, with some functionality that will
detect my "Real World" ip address, ie that of my router, as opposed to
the actual IP it is running on which is a 192.168.1.x address.
So the .NET app needs to some how find out what real world IP address
it is running on.
There are web pages (such as www.mywanip.com) that can tell me, and I
suppose I could write my application to connect to that page, and parse
the IP address that it posts on that page. It seems to always be in the
same spot, and always enclosed by Paragraph tags with a css class
reference. That seems pretty unique so I could always find my IP
address posted on that page.
But I am also interested if there is an easier way of doing it. I can't
think of anyway that would not required "hitting" some external
resource... I am guessing that because when my PC sends out a request
(say HTTP for example), the real IP isn't ammended until it reaches my
router. Then my router handles where the returned packets need to go
internally.
Cheers,
Steven
I want to write an application, with some functionality that will
detect my "Real World" ip address, ie that of my router, as opposed to
the actual IP it is running on which is a 192.168.1.x address.
So the .NET app needs to some how find out what real world IP address
it is running on.
There are web pages (such as www.mywanip.com) that can tell me, and I
suppose I could write my application to connect to that page, and parse
the IP address that it posts on that page. It seems to always be in the
same spot, and always enclosed by Paragraph tags with a css class
reference. That seems pretty unique so I could always find my IP
address posted on that page.
But I am also interested if there is an easier way of doing it. I can't
think of anyway that would not required "hitting" some external
resource... I am guessing that because when my PC sends out a request
(say HTTP for example), the real IP isn't ammended until it reaches my
router. Then my router handles where the returned packets need to go
internally.
Cheers,
Steven
