core dumped error modify

terminate called after throwing an instance of 'SocketException'
Aborted (core dumped)