It might be against terms of service, but I very much doubt it's illegal.
Ten minutes of Googling shows nothing about running servers from my home being illegal.
How would they know you're hosting a server? I mean, practically speaking a server is just a computer you leave running 24/7.
Please could you provide some evidence of your statement, otherwise I don't think it's quite true.