Shabbos 22 – שבת כב

Rava says if he lit inside then brought it outside he is not yotzei, since the lighting needs to be done in the proper place.  We learned yesterday that in times of need they would light inside (as is done nowadays); if lighting inside is technically acceptable then why in this case is it not considered a proper lighting?

The Gemara quotes two pieces in the name of Rav Tanchum (Ner Chanukah above twenty, and the pit of Yosef); is there any connection between the two?