Adding support for internal ip/port usage.

This patch adds support for using -internal to register docker0
internal ip and port settings, instead of using the docker host
mapped ones.
can be collapsed into one line. `var hp, hip string`