Fixed SegFault after opendir
Fixed port of server.
Merge pull request #1 from Dasister/master

Segmentation Fault fixed