Made servers assign their own ip's

Server now dynamically assigns its own local ip instead of localhost