IPv6地址在Internet Explorer-10 WebSocket中给出语法错误
问题描述:
我正在从server获取ipv6地址.然后我正在为websocket创建url.我的网址看起来 像
I am getting ipv6 address from server . Then i am creating url for websocket. my url looks like
ws://[xxxx:xxxx:xxxx:xxxx :: xxxx:xxxx] :(十进制端口)
ws://[xxxx:xxxx:xxxx:xxxx::xxxx:xxxx]:(port in decimal)
其中x(十六进制为0-f) 这个网址在chrome和firefox中运作良好.但是在ie 10中,它给出语法错误.任何人都可以告诉:-
where x(0-f in hexadecimal) this url is working fine in chrome and firefox . but in ie 10 it give syntax error .can anyone tell:-
- -IPv6在-10中得到支持
- -如果要支持ipv6,还需要做些什么
答
可以通过使用"UNC路径名中的IPv6地址"解决此问题. http://en.wikipedia.org/wiki/IPv6_address
This problem can be solved by using "Literal IPv6 addresses in UNC path names" . http://en.wikipedia.org/wiki/IPv6_address