diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,5 +1,10 @@
 # Revision history for tcp-streams
 
+## 1.0.1.1
+
+* Fix [stackage#4312](https://github.com/commercialhaskell/stackage/issues/4312): Relax version bound for `network`.
+
+
 ## 1.0.1.0
 
 * Update test cert(the old one just expired).
diff --git a/System/IO/Streams/TCP.hs b/System/IO/Streams/TCP.hs
--- a/System/IO/Streams/TCP.hs
+++ b/System/IO/Streams/TCP.hs
@@ -1,4 +1,5 @@
 {-# LANGUAGE ScopedTypeVariables #-}
+{-# LANGUAGE CPP #-}
 
 -- | This module provides convenience functions for interfacing raw tcp.
 --
@@ -36,6 +37,13 @@
 import qualified System.IO.Streams         as S
 import           Foreign.Storable   (sizeOf)
 
+addrAny :: N.HostAddress
+#if MIN_VERSION_network(2,7,0)
+addrAny = N.tupleToHostAddress (0,0,0,0)
+#else
+addrAny = N.iNADDR_ANY
+#endif
+
 -- | Type alias for tcp connection.
 --
 -- Normally you shouldn't use 'N.Socket' in 'connExtraInfo' directly, this field is
@@ -145,11 +153,11 @@
                   -> Int                 -- ^ connection limit
                   -> N.PortNumber        -- ^ port number
                   -> IO N.Socket
-bindAndListenWith f maxc port = do
+bindAndListenWith f maxc port =
     E.bracketOnError (N.socket N.AF_INET N.Stream 0)
                      N.close
                      (\sock -> do f sock
-                                  N.bind sock (N.SockAddrInet port N.iNADDR_ANY)
+                                  N.bind sock (N.SockAddrInet port addrAny)
                                   N.listen sock maxc
                                   return sock
                      )
diff --git a/tcp-streams.cabal b/tcp-streams.cabal
--- a/tcp-streams.cabal
+++ b/tcp-streams.cabal
@@ -1,5 +1,5 @@
 name:                tcp-streams
-version:             1.0.1.0
+version:             1.0.1.1
 synopsis:            One stop solution for tcp client and server with tls support.
 description:         One stop solution for tcp client and server with tls support.
 license:             BSD3
@@ -33,7 +33,7 @@
   other-modules:    Paths_tcp_streams
   -- other-extensions:    
   build-depends:        base           >=4.7  && < 5.0
-                    ,   network        >=2.3  && < 3.0
+                    ,   network        >=2.3  && < 4.0
                     ,   bytestring     >= 0.10.2.0
                     ,   io-streams     >= 1.2 && < 2.0
                     ,   tls            >= 1.3 && < 2.0
