How to do homework without getting distracted?

I have a iPad iPhone iPod laptop 2computers 3tv 5th grade

By not doing this.

When you go to high school it gets much worse so get into the habit now. Get a private place to study and leave EVERYTHING that would distract you outside the room

Well, i'm in college and whenever i want to study i turn off and shut down both my laptop and home PC. And if i need computer to do my homework i use the laptop that does not have facebook, youtube and skype and any type of messenger on its desktop.
btw
when ever you want to do your home works, first go after the subjects that you like and you can finish them easily. Because if you leave them just like that, at the end of the day or at the end of the week you won't find even an hour to finish them; so, do the easier home works first, then go after the nasty ones: D

Take your homework, bus fare for one ride ONLY. Take a bus and do it there until you get to your last stop and then finish anywhere you can and then walk home or have someone pick you up (use a store phone)

Have someone lock the electronic items that can be carried to a room, lock it with a key and hide it until youre done.

Get out of your house and somehwere near to your home and do it there, or just the library.

If you are going to do homework why not go to a place where everyone should go to do that and you will have no choice to do it or you will feel weird.