Default install of Oracle XE only allow connection from localhost.
For network access you need sysdba access.
Login as “system” with propriate password
Change access into “available from local server and remote connection” and followed by click “Apply Changes”
See confirmation message
Logout and try login from network.