diff --git a/httpretty/core.py b/httpretty/core.py
index 25926a0..a1b2469 100644
--- a/httpretty/core.py
+++ b/httpretty/core.py
@@ -290,9 +290,18 @@ class fakesock(object):
             self.type = type
 
         def connect(self, address):
-            self._address = (self._host, self._port) = address
             self._closed = False
-            self.is_http = self._port in POTENTIAL_HTTP_PORTS | POTENTIAL_HTTPS_PORTS
+
+            try:
+                self._address = (self._host, self._port) = address
+            except ValueError:
+                # We get here when the address is just a string pointing to a
+                # unix socket path/file
+                #
+                # See issue #206
+                self.is_http = False
+            else:
+                self.is_http = self._port in POTENTIAL_HTTP_PORTS | POTENTIAL_HTTPS_PORTS
 
             if not self.is_http:
                 if self.truesock:

httpretty crashes if program uses unix sockets
```
        def connect(self, address):
            self._address = (self._host, self._port) = address
```
Crashes with `too many values to unpack` because unix socket addresses are just files. Working on a PR.
diff --git a/tests/unit/test_httpretty.py b/tests/unit/test_httpretty.py
index d26caf4..3059c12 100644
--- a/tests/unit/test_httpretty.py
+++ b/tests/unit/test_httpretty.py
@@ -353,6 +353,18 @@ def test_fake_socket_passes_through_shutdown():
     expect(s.shutdown).called_with(socket.SHUT_RD).should_not.throw(AttributeError)
     s.truesock.shutdown.assert_called_with(socket.SHUT_RD)
 
+def test_unix_socket():
+    import socket
+    HTTPretty.enable()
+
+    # Create a UDS socket
+    sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
+    server_address = './not-exist-socket'
+    try:
+        sock.connect(server_address)
+    except socket.error:
+        # We expect this, since the server_address does not exist
+        pass
 
 def test_HTTPrettyRequest_json_body():
     """ A content-type of application/json should parse a valid json body """

pip install -e .[dev]
parse_log_pytest
requirements.txt
nose coverage mock sure httplib2 requests tornado pytest
3.9
requirements.txt test-requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
coverage==3.7.1
exceptiongroup==1.2.2
httplib2==0.8
-e git+https://github.com/gabrielfalcao/HTTPretty.git@ac839f7b5a1a09e61e343f87cb399d2d8825bfb1#egg=httpretty
iniconfig==2.1.0
mock==1.0.1
nose==1.3.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
requests==2.15.1
sure==1.2.3
tomli==2.2.1
tornado==3.2
urllib3==1.7.1

name: HTTPretty
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - coverage==3.7.1
      - exceptiongroup==1.2.2
      - httplib2==0.8
      - iniconfig==2.1.0
      - mock==1.0.1
      - nose==1.3.0
      - packaging==24.2
      - pluggy==1.5.0
      - pytest==8.3.5
      - requests==2.15.1
      - sure==1.2.3
      - tomli==2.2.1
      - tornado==3.2
      - urllib3==1.7.1
prefix: /opt/conda/envs/HTTPretty

tests/unit/test_httpretty.py::test_unix_socket
tests/unit/test_httpretty.py::test_httpretty_should_raise_proper_exception_on_inconsistent_length tests/unit/test_httpretty.py::test_httpretty_should_raise_on_socket_send_when_uri_registered tests/unit/test_httpretty.py::test_httpretty_should_not_raise_on_socket_send_when_uri_not_registered tests/unit/test_httpretty.py::test_does_not_have_last_request_by_default tests/unit/test_httpretty.py::test_status_codes tests/unit/test_httpretty.py::test_uri_info_full_url tests/unit/test_httpretty.py::test_uri_info_eq_ignores_case tests/unit/test_httpretty.py::test_global_boolean_enabled tests/unit/test_httpretty.py::test_py3kobject_implements_valid__repr__based_on__str__ tests/unit/test_httpretty.py::test_Entry_class_normalizes_headers tests/unit/test_httpretty.py::test_Entry_class_counts_multibyte_characters_in_bytes tests/unit/test_httpretty.py::test_fake_socket_passes_through_setblocking tests/unit/test_httpretty.py::test_fake_socket_passes_through_fileno tests/unit/test_httpretty.py::test_fake_socket_passes_through_getsockopt tests/unit/test_httpretty.py::test_fake_socket_passes_through_bind tests/unit/test_httpretty.py::test_fake_socket_passes_through_connect_ex tests/unit/test_httpretty.py::test_fake_socket_passes_through_listen tests/unit/test_httpretty.py::test_fake_socket_passes_through_getpeername tests/unit/test_httpretty.py::test_fake_socket_passes_through_getsockname tests/unit/test_httpretty.py::test_fake_socket_passes_through_gettimeout tests/unit/test_httpretty.py::test_fake_socket_passes_through_shutdown tests/unit/test_httpretty.py::test_HTTPrettyRequest_json_body tests/unit/test_httpretty.py::test_HTTPrettyRequest_invalid_json_body tests/unit/test_httpretty.py::test_HTTPrettyRequest_queryparam tests/unit/test_httpretty.py::test_HTTPrettyRequest_arbitrarypost
httpretty/core.py
httpretty/core.py