[Solved] Server data accessing from non local network without port forwarding

Yes, it’s possible to access the web server from an external network, depending on your current network configuration. There are two simple solutions I think would suit you. Configure your firewall if needed, enable port forwarding in your router settings to forward port 80 to the internal IP of the machine running your XAMPP-server. If … Read more

[Solved] How to create a server which creates a new thread for each client? [closed]

Basically, what you’re looking for is something like this : #include <sys/types.h> #include <sys/socket.h> #include <pthread.h> void* handle_connection(void *arg) { int client_sock = *(int*)arg; /* handle the connection using the socket… */ } int main(void) { /* do the necessary setup, i.e. bind() and listen()… */ int client_sock; pthread_t client_threadid; while((client_sock = accept(server_sock, addr, addrlen)) … Read more