# Socket.connect in the Windows binary of Julia V1.0.1

**URL:** <https://discourse.julialang.org/t/socket-connect-in-the-windows-binary-of-julia-v1-0-1/16616>\
**Category:** General Usage\
**Created:** [October 22, 2018, 2:38am UTC](https://discourse.julialang.org/t/socket-connect-in-the-windows-binary-of-julia-v1-0-1/16616 "2018-10-22T02:38:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgforbes](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jgforbes](https://discourse.julialang.org/u/jgforbes)\
**Post date:** [October 22, 2018, 2:38am UTC](https://discourse.julialang.org/t/socket-connect-in-the-windows-binary-of-julia-v1-0-1/16616/1 "2018-10-22T02:38:14Z")

</div>

Should this work in the windows binary  
julia\> using Sockets

julia\> ip=“169.254.4.10”  
“169.254.4.10”

julia\> port = 5025  
5025

julia\> instr = connect(ip, port)  
ERROR: IOError: connect: connection timed out (ETIMEDOUT)  
Stacktrace:  
[1] try\_yieldto(::typeof(Base.ensure\_rescheduled), ::Base.RefValue{Task}) at .\event.jl:196  
[2] wait() at .\event.jl:255  
[3] wait(::Condition) at .\event.jl:46  
[4] stream\_wait(::TCPSocket, ::Condition) at .\stream.jl:47  
[5] wait\_connected(::TCPSocket) at .\stream.jl:263  
[6] connect at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.0\Sockets\src\Sockets.j  
l:444 [inlined]  
[7] connect(::String, ::Int64) at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.0\So  
ckets\src\Sockets.jl:427  
[8] top-level scope at none:0

It works correctly in Fedora 28 Julia V 0.6.3

---

<div class="post-metadata">

**Author:** ![y4lu](https://avatars.discourse-cdn.com/v4/letter/y/47e85d/32.png) [@y4lu](https://discourse.julialang.org/u/y4lu)\
**Post date:** [October 22, 2018, 3:10am UTC](https://discourse.julialang.org/t/socket-connect-in-the-windows-binary-of-julia-v1-0-1/16616/2 "2018-10-22T03:10:45Z")

</div>

It’s not a local port on the linux machine that windows doesn’t have open?

---

<div class="post-metadata">

**Author:** ![jgforbes](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jgforbes](https://discourse.julialang.org/u/jgforbes)\
**Post date:** [October 22, 2018, 4:36am UTC](https://discourse.julialang.org/t/socket-connect-in-the-windows-binary-of-julia-v1-0-1/16616/3 "2018-10-22T04:36:52Z")

</div>

I can connect to the remote IP from the Fedora 28 VM that is running on  
the Windows machine  
Turning off the windows firewall has no effect on the connections from  
Julia in windows.

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [October 22, 2018, 2:34pm UTC](https://discourse.julialang.org/t/socket-connect-in-the-windows-binary-of-julia-v1-0-1/16616/4 "2018-10-22T14:34:36Z")

</div>

Can you ping and/or telnet to that combination from a terminal?

---

<div class="post-metadata">

**Author:** ![jgforbes](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jgforbes](https://discourse.julialang.org/u/jgforbes)\
**Post date:** [October 22, 2018, 2:39pm UTC](https://discourse.julialang.org/t/socket-connect-in-the-windows-binary-of-julia-v1-0-1/16616/5 "2018-10-22T14:39:56Z")

</div>

Yes, I can ping the IP from both the host windows Julia 1.0.1 and Julia 0.6 on the guest.  
The first couple of pings from Windows fails, then it starts as expected.  
Is there anyway to increase the timeout of the Sockets.connect?
