A method for wireless communication between a train and a remote server through at least one external mobile network (4; 4a-c), comprising: providing at least one router in the train for receiving and transmitting wireless data to and from a stationary communication server outside said train through said at least one external mobile network (4; 4a-c) via at least one antenna (5a-n) and being connected to at least one access point for receiving and transmitting wireless data to and from at least one client onboard the train; and determining if a stream of wireless data packets received by said router corresponds to at least one of a VoIP stream and a VoWIFI stream; characterized in that it further comprises determining if the client associated with said stream is within the access area of an access point which is set in a silent compartment mode; and intercepting said stream if it has been determined that said stream of wireless data packets corresponds to at least one of a VoIP stream and a VoWIFI stream and that said client associated with said stream is within the access area of an access point set in a silent compartment mode; wherein at least one access point in the train is set in a silent compartment mode, thereby providing a silent coach or compartment, and at least one access point in the train is set in a non-silent compartment mode, thereby providing a non-silent coach/compartment mode, and wherein access points are set in a silent compartment mode by means of software configuration in the router, and wherein the software configuration for setting access points in a silent compartment mode or in a normal compartment mode in said router is controllable from an external server. providing at least one router in the train for receiving and transmitting wireless data to and from a stationary communication server outside said train through said at least one external mobile network (4; 4a-c) via at least one antenna (5a-n) and being connected to at least one access point for receiving and transmitting wireless data to and from at least one client onboard the train; and determining if a stream of wireless data packets received by said router corresponds to at least one of a VoIP stream and a VoWIFI stream; characterized in that it further comprises determining if the client associated with said stream is within the access area of an access point which is set in a silent compartment mode; and intercepting said stream if it has been determined that said stream of wireless data packets corresponds to at least one of a VoIP stream and a VoWIFI stream and that said client associated with said stream is within the access area of an access point set in a silent compartment mode; wherein at least one access point in the train is set in a silent compartment mode, thereby providing a silent coach or compartment, and at least one access point in the train is set in a non-silent compartment mode, thereby providing a non-silent coach/compartment mode, and wherein access points are set in a silent compartment mode by means of software configuration in the router, and wherein the software configuration for setting access points in a silent compartment mode or in a normal compartment mode in said router is controllable from an external server.