Fixed Dynamic Server Detection

TBD: Add/Remove the port usages based on the default routing. Currently
it sets itself to 80 for my applications.