You can just add both urls to the host file. Port does not need to be specified there, and will still work:
127.0.0.1 www.aaa.com
127.0.0.1 www.bbb.com
From the browser, type:
http://www.aaa.com:64099
http://www.bbb.com:[port num]
The above assumes your sites are bound to specific host names (www.aaa.com, etc) and port numbers.