TCP Socket being randomly accepted (C)

I’m trying to create TCP socket in replit using C, however the accept() funcion is being randomly accepted by something. I am assuming that this has something to do with replit accepting the socket, however I am not sure. What is happening here?

Repl link:

I have solved this issue. The problem was with webview. When you connect to the internet with replit, by default a webview will open showing your page, this webview was what was triggering the accept() function.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.