Few changes. See below.

Fix for console output print (too many \n)
Default port variable is moved to prc
Default ip is changed to 127.0.0.1