Adding error codes to GUI

Changes made:
- Added error codes all over the place
- Added new tab for selecting IP address

Still to do:
- Improve IP address regex
- Investigate error code 10061
- Develop method to automatically find port