natevw / ipcalf

Gives back your public IP address in plain HTML, plain text, and JSON (w/CORS!)
http://ipcalf.com
72 stars 12 forks source link

Method 'createDataChannel' not found in Microsoft Edge #1

Open jonas0616 opened 7 years ago

jonas0616 commented 7 years ago

Normally, when the browser does not support WebRTC, ipcalf shows

ifconfig | grep inet | grep -v inet6 | cut -d" " -f2 | tail -n1

Nevertheless, Edge only shows - in net.ipcalf.com. And the console shows the following error:

SCRIPT438: Object doesn't support property or method 'createDataChannel'
net.ipcalf.com (18,9)

It looks like there is webkitRTCPeerConnection in Edge, but there is no createDataChannel in its webkitRTCPeerConnection

Version

Microsoft Edge 40.15063.0.0
natevw commented 7 years ago

Thanks for letting me know, I'll try take a look at this soon. I should probably try it out in the Safari preview as well!

natevw commented 7 years ago

Started looking into this and you're right: the status of RTC Data Channels in Edge is currently only "Under Consideration" (at low priority :-/) whereas the core of WebRTC is supported.

It's looking my Win10 netbook needs some extra help to get updated to a newer Edge, but once that's in place I can start looking into alternative logic.

natevw commented 7 years ago

@jonas0616 You said you have "Microsoft Edge 40.15063.0.0" — is that on a beta channel or something?

I think I managed to get all available (normal) updates for my Win10 netbook but still had a much lower Edge version.

jonas0616 commented 7 years ago

@natevw It looks like Microsoft does not push the update for all machines. According to Windows Experience Blog, it rolls out across the world in phases, starting with newer machines first.

natevw commented 7 years ago

Hmm, I noticed yesterday that MS actually has some Edge VMs for download: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/

However, these are the two relevant options:

…so unless I'm missing something with the version numbers, both the stable and "preview" options are way old and maybe not useful here.

jonas0616 commented 7 years ago

@natevw I guess the version you mentioned is EdgeHTML version.

My Edge version in About this app shows:

Microsoft Edge 40.15063.0.0
Microsoft EdgeHTML 15.15063

The detailed mapping can be found in Wikipedia

natevw commented 6 years ago

@jonas0616 Ah, excellent! So these should be an even handier debugging aid.

miqueet commented 6 years ago

Any word on alternative logic?

jatpat commented 5 years ago

it looks like working in latest Edge version 18.***

natevw commented 5 years ago

Oh cool, maybe procrastination paid off then…?