Change socket address from localhost to 127.0.0.1

For some reason ruby socket started to fail when
receives locahost for pack_sockaddr_in

Change-Id: I66e6e80de4202a26d25edfab9157783948578e76
Closes-Bug: #1297829