changed port in app, and legality now works