added code to make server visible to external network