Android FSocket error SE_EBADF

I’m trying to connect to a server on an android app but when I try to connect I get the error SE_EBADF. If I run it on either of my two computers it works just fine and connects, but when deployed to android it doesn’t work. I’ve searched everywhere and I can’t find any descriptions of the errors in SocketTypes.h. What does this error even mean?