I am trying to deploy artifacts to nexus. When I tried with local machine it worked fine. But when I tried the same setup by having nexus in another machine. It is throwing error.

I have configured the <server> with <id>, <username> and <password> in settings.xml and same <id> is referred in pom.xml.
The nexus machine accepts 80 & 8080 ports. Do I need to enable any other port? I reset the deployment user password and using the same password in settings.xml. Please help me how to resolve this. Thanks.
EDIT:
This is the first time I am trying to setup and deploy Nexus. I am able to download the dependencies from Nexus. Only problem is I am unable to deploy
settings.xml
<servers>
<server>
<id>releases</id>
<username>deployment</username>
<password>deployment</password>
</server>
<server>
<id>snapshots</id>
<username>deployment</username>
<password>deployment</password>
</server>
</servers>
pom.xml
<distributionManagement>
<repository>
<id>releases</id>
<name>releases</name>
<url>http://ie22dtvm60013:8080/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>Internal Snapshots</name>
<url>http://ie22dtvm60013:8080/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
I checked the ‘System Feeds’ in Nexus, it shows ‘deployment’ user is authenticated. But still I am unable to deploy.


The problem might be that ipv6 is activated. Maven uses ipv6 if offered by the router but often networks are not fully configured to work with that yet.
Try setting -Djava.net.preferIPv4Stack=true for your maven invocation of the deploy command.