• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: TCP/IP connection via Ethernet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TCP/IP connection via Ethernet


  • Subject: Re: TCP/IP connection via Ethernet
  • From: Igor garnov <email@hidden>
  • Date: Thu, 11 Mar 2004 20:27:16 +0300

On Thursday, Mar 11, 2004, at 15:51 Europe/Moscow, Livio wrote:

I need to make a TCP/IP connection between two Macs via Ethernet (using the first as client and the second as server), is it possible?

My settings are:
---TCP/IP control panel---
Connect via: Ethernet
Configure: Manually
IP address: 192.168.1.1 (192.168.1.2 for the second mac)
Subnet mask: 255.255.255.0
Name server address: 192.168.1.2 (192.168.1.1 for the second mac)

Then I have an application that opens an endpoint, binds it to the local address (192.168.1.1) and finally tries to connect to the second computer's address (192.168.1.2). It always returns with a T_DISCONNECT event with error 61 in the reason field of the TDiscon record.

On the second computer I have the same application listening for the traffic.

Can anybody tell me what'is wrong (or/and what id missing)?

If you try to connect and your notifier callback is called with T_DISCONNECT, and the error is 61 - this means that no application is listening on the destination port on the remote machine.

Apparently, there is something wrong with the code responsible for listening to the incoming connection requests, or you specify a wrong port number in your OTConnect call.

Also, consider that you do not have to bind to a specific interface when acting as a client (i.e. trying to connect to a remote host).

Regards,

Igor
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.


References: 
 >TCP/IP connection via Ethernet (From: Livio <email@hidden>)

  • Prev by Date: Re: TCP/IP connection via Ethernet
  • Next by Date: Re: kStreamIoctlEvent and T_MEMORYRELEASED question
  • Previous by thread: Re: TCP/IP connection via Ethernet
  • Next by thread: Re: TCP/IP connection via Ethernet
  • Index(es):
    • Date
    • Thread