Can we run a bootstrap node Behind a NAT

I am trying to create my own bootstrap node(https://github.com/BenDerPan/simple-bootstrap-node/blob/master/main.go) and make changes with this example(https://github.com/libp2p/go-libp2p-examples/tree/master/chat-with-rendezvous)

It works fine if I run bootstrap node in local network but if I run bootstrap node in different network I am getting a I/O timeout error

Note :I added libp2p.NATPortMap to the new constructor in both programs
@stebalien @raul

Are you getting the error when trying to connect to the bootstrap node? How are you doing that and what address are you using?

I resolved it Thank you,I assigned a static port and public Ip address to bootsrtap node