Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pipetogrep

macrumors 6502
Original poster

August 2026 Update!​

Hi all,

We've successfully gotten iChat audio and video conferencing working over the Internet! I'm rewriting the majority of this post on account of new information that we learned and mistakes we didn't know about before.

tl;dr​

Add this to your /etc/hosts and iChat on Leopard and Show Leopard (has not been tested on Tiger or Panther) should be able to make audio and video calls again assuming your router does port-preserving NAT (most do).
Code:
185.52.176.175 configuration.apple.com
I will continue hosting the SNATMAP and web server for the forseeable future because I think y'all are great! 🙂

Then register iChat with a Jabber server (jabb.im still works) or possibly an OSCAR server if you want something AIM flavored. My handle on jabb.im is pipetogrep and @Melchieor's is melchieor. Let us know if you want to try this out with us and say hello!

The big missing piece that was SNATMAP server has been figured out. This server is responsible for ascertaining each party's public IP and port for iChat to make its peer-to-peer connection when negotiating the call. We (@Melchieor and I) reverse engineered how the protocol works by having an LLM de-compile iChat's video conferencing library and having it write a spec for it. With the spec in hand, and so I would actually learn something from this endeavor, I studied the spec thoroughly and wrote (by hand) a working SNATMAP server in Python from that spec file.

The spec and the Python server are linked at the end of this post for anyone that wishes to self host it and/or write their own. It turns out it is an extremely simple protocol and was a great project for me to write my first UDP server with. The only other piece to make this work if you wish to self host is to run your own web server that serves
Code:
/configurations/macosx/ichat/1/snatmap.txt
with the `snatmap.txt` file containing the string
Code:
snatmap://YOUR_SERVER_IP:5678
replacing `YOUR_SERVER_IP` with, well, your server IP. 🙂

Previously, we knew which ports were involved and I stated that NAT port forwarding was required. Turns out that is not true, at least for the audio/video conferencing piece. What is required is a router that does port-preserving NAT which is most routers. In my case, I'm on pfSense and had to make an outbound NAT rule to do this. Any other BSD based router will likely be required to do the same. To verify this behavior, I created an isolated "Internet" and tested with OPNsense and OpenWrt VMs (BSD and Linux respectively). OPNsense required an outbound NAT rule for port preservation. OpenWrt required no such modification.

Other things to be aware of:
  • If you want higher resolution video (640x480) you must be on a G5 or Intel Mac. I was able to verify this with further reverse engineering. I did manage to force it with an LLM written library shim but it was a slide show and I did not pursue it further. If some one is interested, I'll share it.
  • Since we don't have a reverse engineered version of Apple's bandwidth server (yet) you'll need to go into Quicktime's preferences and set the streaming bandwidth there. iChat references it as a fall back and uses it in its video resolution decision making process.
  • File transfers aren't working yet, but that may just come down to port forwarding (port 5190). I'll update later once I've gotten it going.

Another thing that is really cool is you don't need an iSight. Relatively modern Logitech cameras work! The C920 works perfectly with Leopard and even Tiger and is iChat compatible!

As promised, here are the SNATMAP spec and Python files.

Enjoy and I hope to see you in the glorious blurred haze that was early 2000s video conferencing!

Picture 2.png
Picture 3.png
Picture 4.png
 
Last edited:
This is awesome, and exactly what I want to do. Unfortunately I have no knowledge of such things, so would need a step-by-step guide on what to do, starting with how to open ports.

I look forward to your tests!
 
This is awesome, and exactly what I want to do. Unfortunately I have no knowledge of such things, so would need a step-by-step guide on what to do, starting with how to open ports.

I look forward to your tests!
Port forwarding is done at the router level.
 
  • Like
Reactions: juanstdio
Hi all,

This post is Melchieor's and my effort to get iChat AV video conferencing again.
Lots of great info there!

I came across your post as I was trying to find what ports iChat uses for conferencing. Recently, while reading about PowerPC Challenge 2024 over at TinkerDifferent, I came up with the ideia to try to use iChat with some friends. I've used it before, during the Google Talk days, but that's not an option anymore (AFAIK), so I'm hosting it locally on a Power Mac G4 running Tiger Server and the iChat service.

Chatting and voice/video calls work fine on the LAN, but only chatting works over the WAN (voice/video calls fail to connect). I already have all the needed ports "NATted" to the G4's local IP, but now I know that's not enough.

I'm yet to try the snatmap local server, so I'll see how it goes.
 
Lots of great info there!

I came across your post as I was trying to find what ports iChat uses for conferencing. Recently, while reading about PowerPC Challenge 2024 over at TinkerDifferent, I came up with the ideia to try to use iChat with some friends. I've used it before, during the Google Talk days, but that's not an option anymore (AFAIK), so I'm hosting it locally on a Power Mac G4 running Tiger Server and the iChat service.

Chatting and voice/video calls work fine on the LAN, but only chatting works over the WAN (voice/video calls fail to connect). I already have all the needed ports "NATted" to the G4's local IP, but now I know that's not enough.

I'm yet to try the snatmap local server, so I'll see how it goes.
Hey, Pedro. In order to get it going through the public web, you need to create a NAT translation rule that maps the person's private IP to their public IP. This has to be done on their end as well.

The reason for this is Apple used to provide a service that would figure out what the public IP was of each person and pass that along in the video chat request. That service no longer exists.

Lemme know if you need more info on that!
 
  • Like
Reactions: juanstdio
Hey, Pedro. In order to get it going through the public web, you need to create a NAT translation rule that maps the person's private IP to their public IP. This has to be done on their end as well.

The reason for this is Apple used to provide a service that would figure out what the public IP was of each person and pass that along in the video chat request. That service no longer exists.

Lemme know if you need more info on that!

Thanks for all the info! Everything that you and @Melchieor were able to find and test really helped me better understand how iChat works.

My hope was to get around SNATMAP by running the server locally, under Mac OS X Server, but unfortunately it didn't work. Text chats work fine (messages are piped through the server), but audio and video calls still rely on P2P and SNATMAP (but they work fine if all clients are on the same LAN, though).

Server.jpg


From what I understand, iChat tries to get the participants external IP address from SNATMAP, fails to do so (as the service is no longer available) and then defaults to using their internal IPs, which cannot work if there isn't NAT translation going on at both ends (like you said).

We know it's just not feasible to have people creating NAT rules on their routers (some may not even have the required access to do it), so for now, I'm just using the next best thing, a VPN connection. I enabled the L2TP VPN service on the server (I know it's super unsafe to host a VPN server on an OS that hasn't been updated since 2009, but it's just for fun 🙂) and I'm having all the participants connect to it.

I did a test run last weekend and it worked! I used two laptops, a 12" 1.33 GHz PowerBook G4 running Tiger and a 13" 2.5 GHz Core i5 2012 MacBook Pro running Lion, plus the server itself, to join a three-way video chat:

Chat.jpg


Quality was OK, especially when we consider the laptops were connected to the VPN through my phone's 4G data hotspot, and that the Power Mac's and PowerBook's CPU were pegged at near 100% utilization (well, the Power Mac was also doubling as the server, so that's kind of expected).

Later this week I'll have some friends join me so we can try a four-way video chat. I just hope the G4 systems can keep up!
 
Thanks for all the info! Everything that you and @Melchieor were able to find and test really helped me better understand how iChat works.

My hope was to get around SNATMAP by running the server locally, under Mac OS X Server, but unfortunately it didn't work. Text chats work fine (messages are piped through the server), but audio and video calls still rely on P2P and SNATMAP (but they work fine if all clients are on the same LAN, though).

View attachment 2340366

From what I understand, iChat tries to get the participants external IP address from SNATMAP, fails to do so (as the service is no longer available) and then defaults to using their internal IPs, which cannot work if there isn't NAT translation going on at both ends (like you said).

We know it's just not feasible to have people creating NAT rules on their routers (some may not even have the required access to do it), so for now, I'm just using the next best thing, a VPN connection. I enabled the L2TP VPN service on the server (I know it's super unsafe to host a VPN server on an OS that hasn't been updated since 2009, but it's just for fun 🙂) and I'm having all the participants connect to it.

I did a test run last weekend and it worked! I used two laptops, a 12" 1.33 GHz PowerBook G4 running Tiger and a 13" 2.5 GHz Core i5 2012 MacBook Pro running Lion, plus the server itself, to join a three-way video chat:

View attachment 2340358

Quality was OK, especially when we consider the laptops were connected to the VPN through my phone's 4G data hotspot, and that the Power Mac's and PowerBook's CPU were pegged at near 100% utilization (well, the Power Mac was also doubling as the server, so that's kind of expected).

Later this week I'll have some friends join me so we can try a four-way video chat. I just hope the G4 systems can keep up!
That is so cool! You took it to the next step. I started playing with L2TP, but all my VPN knowledge is OpenVPN centric so I struggled. I considered making a public L2TP server for the MacRumors community but the got distracted.

There's also that issue the issue of CPU being spent on CPU overhead. I did have some other ideas I wanted to consider.

  1. Trying to do NAT translation at the host level. That could be scripted. It would be fragile but whatever.
  2. Writing a custom XMPP plugin that would detect which IP the request was coming from and update it on-the-fly. I did do some packet captures on unencrypted iChat sessions to see what was going on in the background. This is a bit beyond my capabilities right now, however.
Another issue is no matter what you set your Quicktime bandwidth settings to, it never seems to select a higher quality video stream. You can verify by running iChat in debug mode.

If you want to try working together on this, I'd love the help!
 
  • Like
Reactions: ak-78 and Slix
I was searching for ways to get iChat working and ran into this
prior to this here post.
I wonder if it would be possible say using Wireshark 🤔 to utilize the server that the newer macs use with Messages?
I don't know enough about how Jabber works so I'm just guessing here.
It would be awesome to make ichat a thing again.
Thanks so much for your efforts...
 
  • Like
Reactions: ak-78
Thanks for all the info! Everything that you and @Melchieor were able to find and test really helped me better understand how iChat works.

My hope was to get around SNATMAP by running the server locally, under Mac OS X Server, but unfortunately it didn't work. Text chats work fine (messages are piped through the server), but audio and video calls still rely on P2P and SNATMAP (but they work fine if all clients are on the same LAN, though).

View attachment 2340366

From what I understand, iChat tries to get the participants external IP address from SNATMAP, fails to do so (as the service is no longer available) and then defaults to using their internal IPs, which cannot work if there isn't NAT translation going on at both ends (like you said).

We know it's just not feasible to have people creating NAT rules on their routers (some may not even have the required access to do it), so for now, I'm just using the next best thing, a VPN connection. I enabled the L2TP VPN service on the server (I know it's super unsafe to host a VPN server on an OS that hasn't been updated since 2009, but it's just for fun 🙂) and I'm having all the participants connect to it.

I did a test run last weekend and it worked! I used two laptops, a 12" 1.33 GHz PowerBook G4 running Tiger and a 13" 2.5 GHz Core i5 2012 MacBook Pro running Lion, plus the server itself, to join a three-way video chat:

View attachment 2340358

Quality was OK, especially when we consider the laptops were connected to the VPN through my phone's 4G data hotspot, and that the Power Mac's and PowerBook's CPU were pegged at near 100% utilization (well, the Power Mac was also doubling as the server, so that's kind of expected).

Later this week I'll have some friends join me so we can try a four-way video chat. I just hope the G4 systems can keep up!
Thanks for continuing to try things to make this work!

I've used the VPN + iChat Server method before, and it does work, as you discovered. I wish Apple hadn't taken down that service that it tries to ping first, it would make using Jabber nowadays much easier.
 
Good news, everyone! We got iChat audio/video conferencing working over the Internet without any router hackery! We reverse engineering the SNATMAP protocol and re-implemented the server. I edited the original post with all the details. Enjoy!
 
Good news, everyone! We got iChat audio/video conferencing working over the Internet without any router hackery! We reverse engineering the SNATMAP protocol and re-implemented the server. I edited the original post with all the details. Enjoy!
Is there any technical writeup or source code for trying to implement this on one’s own server? Thanks for all this work! I did read through the thread and I’m happy it got so far
 
Is there any technical writeup or source code for trying to implement this on one’s own server? Thanks for all this work! I did read through the thread and I’m happy it got so far
Yes. I updated the original post. It's all there. Feel free to ask any questions.
 
  • Love
Reactions: alex_free
Hello,i saw your post and i decided to try it out on panther,how i create one accont to use on iChat?
I don't know if it'll work on Panther or Tiger. You'll have to connect to a server that iChat understands. Since iChat on Panther was AIM compatible, you'll have to connect to an OSCAR server. You can self host one or find someone else who is. Here's info on how to run your own. https://veronicaexplains.net/open-oscar-server/
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.