That tells you the local ip: 10.0.0.1 means you are behind a router, it is not the real ip. Just the local ip your router gives to the concrete computer you are using. To know your real ip, you have to check the setup page of your router.
Not necesarily, you can also use a 3rd party server on the internet to tell you what IP your request came from. That way it works everywhere, regardless of what router you use or if you have a login to it.
e.g. http://www.ippages.com/simple or http://whatismyip.com
don't have any B3D code though, but it's pretty easy under BMax. :-?
(Oops, didn't see tha