C Socket Code Refusing Localhost Connection On Pi Not On Linux

C Socket Code Refusing Localhost Connection On Pi Not On Linux