The bugs that are swarming around your porch lights are positively phototactic, which means that they’re attracted to it. Bugs like cockroaches are negatively phototactic, which is why they scuttle away when you turn on a light.