---
title: "Could not connect to socket port no 502 of 812MJ module"
url: "https://maker.wiznet.io/forum/9696"
markdown_url: "https://maker.wiznet.io/forum/9696/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "prashantkumar"
created: "2013-11-22T11:48:31+09:00"
last_activity: "2017-05-04T08:30:33+09:00"
language: "en"
views: 476
replies: 1
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# Could not connect to socket port no 502 of 812MJ module

## Question

Asked by prashantkumar on 2013-11-22 in Ethernet Chips.

Hello,
I am using 812MJ ethernet module for modbus protocol communication , I am able to connect , sent and receive data by using AX1 s/w but only if i am configuring my socket 0 port no to ’ 80 ’ . But i need to assign port no 502 (which is used for modbus communication) to my socket 0 , in this case AX1 could not connect to my port . I am unable to find a solution for this , need your help .

## Replies

### Reply 1 by hjjeon0608, 2013-11-29

Hi, prashantkumar.

It could be happened because port number register is written by wrong number.

So, please read port number register and let me know it and how to write port number to port number register(address, value and etc.)??

Best regards.

---

Source: https://maker.wiznet.io/forum/9696
