How to make a online game, a server

i want to make a multi player online game were you can fight each other with guns: can anyone tell me how this is done?