How to connect a free wi-fi connection when I travel in airlines?

I regularly travel and book flights from Houston in the Delta airlines and I realize every time they provide free wi-fi, but when I access the wi-fi, it does not matter. is not connected correctly. Can any one give me appropriate solutions on how to connect a free wi-fi connection during air travel?