Socket communication btw wireless nodes

I am new to socket programming in ruby and am having problems with a
very simple server when I attempt to create a TCPServer.

The error “The requested address is not valid in its context. - bind(2)
(Errno::EADDRNOTAVAIL)” is reported when my code executes the line:

@server = TCPServer.new(“192.168.1.67”,4313 )

The code is running on “192.168.1.68”. Both “192.168.1.68” and
“192.168.1.67” are on the same wireless network. The router does not
have port fowarding enabled (I have been told that it is not necessary
for internal communication).

I am able to ping “192.168.1.67” from “192.168.1.68”, as well as, get
address info.

Any help would really be apreciated.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs