In general, front ports should do better closer to walls in theory, but a lot regarding best sound in any case depends on room acoustics and other factors case by case. So its quite possible in some cases rear porting could work best.
The most common truism about speakers is that soundstage depth is almost inevitably compromised when placed closer to the front wall. Second most common is that bass levels will usually be higher as well.
So you can see that specifics case by case will determine what works best, even if certain general trends apply.
Also most good ported speakers are designed to work best in general with ports open to extent designed, but again, obstructing port to various degrees can be a useful tweak in some cases nonetheless.
BEst to make decisions based on what you or some other knowledgable resource most familiar with your situation thinks, will work best in general, but be prepared to think our of the box as needed from there in order to get best results.
The most common truism about speakers is that soundstage depth is almost inevitably compromised when placed closer to the front wall. Second most common is that bass levels will usually be higher as well.
So you can see that specifics case by case will determine what works best, even if certain general trends apply.
Also most good ported speakers are designed to work best in general with ports open to extent designed, but again, obstructing port to various degrees can be a useful tweak in some cases nonetheless.
BEst to make decisions based on what you or some other knowledgable resource most familiar with your situation thinks, will work best in general, but be prepared to think our of the box as needed from there in order to get best results.