fixed empty content
changed default port
fixed beacon data to be the same as the C version
fixed port number conversion