Windows socket error 10048


Readers help support Windows Report. We may get a commission if you buy through our links.

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

Winsock error 10048 is an error you may encounter when using the Internet. It occurs when a program or process tries to access the network but cannot connect with the server.

Similarly, we also have another Winsock error 10054, so be sure to check out our guide on the same. 

What does Winsock error mean?

A Winsock error is a specific kind of network error. It can happen in any operating system but is most commonly associated with Windows. 

Winsock refers to the Windows Sockets API, a set of functions built into Windows that allow applications to communicate over TCP/IP networks. These functions are used by programs to handle network connections and send data between computers on the Internet.

A Winsock error occurs when an application attempts to connect to another computer using the TCP/IP protocol but can’t establish a connection. This can happen for a variety of reasons, including:

  • Outdated drivers – Outdated drivers can also cause win socket errors on your computer as they might not be compatible with the latest operating systems or security updates released by Microsoft.
  • Incorrectly configured proxy settings – If you’re using a proxy server and have recently updated your computer’s network settings, it’s possible that you’ve accidentally disabled them. 
  • Firewall settings – A firewall or antivirus application may be blocking the connection between your computer and the server you are trying to connect with.
  • Faulty hardware – Another possible cause of this error could be faulty hardware, such as a bad network card or bad cables. 
  • Virus infection – You may have a virus or malware on your computer preventing you from connecting to the internet.

How do I fix Winsock error 10048?

When you get a Winsock error message, it can be difficult to diagnose the problem. The message you see depends on the type of error your computer is experiencing.

The following are some common basic troubleshooting steps you can try your luck with:

  • Check that all of your network connections are enabled and working properly. 
  • Perform a network speed test to ensure your connection is stable.
  • Run Windows Update.
  • Reboot your computer and try again.

1. Disable your antivirus temporarily 

  1. Hit the Start menu icon, type Windows Security in the search bar, and click Open.

  2. Click on Firewall & network protection, then select Public network.
    league of legends black screen after champion select

  3. Locate Microsoft Defender Firewall and toggle the off button.
    turning off Microsoft Defender Firewall Windows

Firewalls are used to block unauthorized access to your computer from the Internet. If you have a firewall enabled, it may be blocking access to the Internet or preventing your computer from connecting properly to websites and servers on the Internet.

If so, then configure your firewall settings properly so as not to block access to services.

2. Update the network driver

  1. Hit the Windows key, type Device Manager in the search bar, and click Open.
    device manager w11

  2. Navigate to Network adapters and click to expand. Right-click on the driver, then click Update driver from the drop-down.

  3. Select the Search automatically for drivers option and wait till the update finishes.

  4. Restart your PC and check if the error persists.

Consequently, you can also use an automatic driver updater tool for secure and fast driver processes.

It will make your work easier as it scans your system for any outdated, incompatible, and corrupt drivers and then replaces them with the correct ones.

Get Outbyte Driver Updater

3. Disable your Proxy 

  1. Press the Windows key and select Settings.
    settings windows 11

  2. Click on Network & Internet on the left pane, then scroll down and click Proxy on the right pane.
    Network proxy settings

  3. Select Edit next to Use a proxy server option in the Manual proxy setup section, toggle off Use a proxy server and click on Save.
    Disable proxy server

Read more about this topic

  • D3dx11_42.dll Not Found: How to Fix it
  • Windows 11 Shutdown After Inactivity: 4 Ways to Stop it
  • Windows Shuts Down Instead of Restarting: 4 Ways to Fix it
  • Error no Ace Condition 804 (0x324): Fix it With 4 Steps
  • Windows 11 Shutdown But User Stays Logged in: How to Fix it

4. Reset TCP/IP

  1. Click on the Start Menu icon, type cmd in the search bar, and click Open.
    cmd-run-admin-w11 unexpected kernel mode trap windows 11

  2. Type in the following commands and press Enter after each one: netsh winsock reset catalog netsh int ipv4 reset reset.log netsh int ipv6 reset reset.log
  3. Now restart your PC and see if the error is still there.

To sum up, if you’ve encountered a Winsock error 10048 and have no idea how to fix it, we hope this guide has helped you get back on track. With the right information, any Winsock error can be fixed.

You can check our comprehensive catalog, as we have covered several Windsock errors and their fixes. For instance, if you come across the Winsock error 10061, feel free to check out our guide for its fixes.

That’s it from us but don’t hesitate to reach out if you have further questions or any additional thoughts on this matter.


Claire Moraa

Windows Software Expert

Claire has a knack for solving problems and improving the quality of life for those around her. She’s driven by rationality, curiosity, and simplicity, and always eager to learn more about Microsoft’s products.
With a background in teaching and reviewing, she breaks down complex topics into easily understandable articles, focusing mostly on Windows 11, errors, and software.



Рейтинг 4.80/30:

1569 / 505 / 48

Регистрация: 04.04.2009

Сообщений: 1,891

20.03.2013, 11:49. Показов 6210. Ответов 2


Пытаюсь запустить специфичную программу Parma (процесс TransData.exe) на рабочих компах Win XP Pro x32. При запуске (на любой машине) получаю ошибочку:

Windows socket error: Обычно разрешается одно использование адреса сокета (протокол/сетевой адрес/порт) (10048), on API «bind»

1. Глянул netstat -aon. Порт 10048 там не обнаружил.
2. Проверил значение MaxUserPort в HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters. Значение максимальное — 65534.
3. Касперского отключал.

Помогите, пожалуйста, с проблемой.

P.S. На домашнем ноуте Win 7 x32 Starter запускается без проблем.
P.P.S. Лог от ProcessMonitor (напоминаю, процесс TransData.exe) на всякий случай прилагаю.



0



4 / 4 / 6

Регистрация: 27.02.2013

Сообщений: 32

20.03.2013, 11:53

Открыть порт в ручную не пробовал.



0



1569 / 505 / 48

Регистрация: 04.04.2009

Сообщений: 1,891

20.03.2013, 17:52

 [ТС]

normalskt,

Сообщение от normalskt

Открыть порт в ручную не пробовал.

1. Пробовал.

2.

Сообщение от The_Immortal

Касперского отключал.

Соответственного и его фаервол. Штатные фаер также отключен.

3.

Сообщение от The_Immortal

На домашнем ноуте Win 7 x32 Starter запускается без проблем

Там никаких шаманств с портами не производил.

Добавлено через 5 часов 46 минут
В общем проблема оказалась в конфлитке с безобидным VNC-сервером, который работает как служба.

Не понимаю, чем мог помешать VNC-сервер? Он занимает конкретные порты 5800 и 5900. И все…

А причем тут вышеуказанный порт 10048 тогда?

Есть идеи?

Каждый раз тушить VCN как-то нехорошо…



0



Новые блоги и статьи

Все статьи  

Все блоги / 

Как использовать OAuth2 со Spring Security в Java

Javaican 14.05.2025

Протокол OAuth2 часто путают с механизмами аутентификации, хотя по сути это протокол авторизации. Представьте, что вместо передачи ключей от всего дома вашему другу, который пришёл полить цветы, вы. . .

Анализ текста на Python с NLTK и Spacy

AI_Generated 14.05.2025

NLTK, старожил в мире обработки естественного языка на Python, содержит богатейшую коллекцию алгоритмов и готовых моделей. Эта библиотека отлично подходит для образовательных целей и. . .

Реализация DI в PHP

Jason-Webb 13.05.2025

Когда я начинал писать свой первый крупный PHP-проект, моя архитектура напоминала запутаный клубок спагетти. Классы создавали другие классы внутри себя, зависимости жостко прописывались в коде, а о. . .

Обработка изображений в реальном времени на C# с OpenCV

stackOverflow 13.05.2025

Объединение библиотеки компьютерного зрения OpenCV с современным языком программирования C# создаёт симбиоз, который открывает доступ к впечатляющему набору возможностей. Ключевое преимущество этого. . .

POCO, ACE, Loki и другие продвинутые C++ библиотеки

NullReferenced 13.05.2025

В C++ разработки существует такое обилие библиотек, что порой кажется, будто ты заблудился в дремучем лесу. И среди этого многообразия POCO (Portable Components) – как маяк для тех, кто ищет. . .

Паттерны проектирования GoF на C#

UnmanagedCoder 13.05.2025

Вы наверняка сталкивались с ситуациями, когда код разрастается до неприличных размеров, а его поддержка становится настоящим испытанием. Именно в такие моменты на помощь приходят паттерны Gang of. . .

Создаем CLI приложение на Python с Prompt Toolkit

py-thonny 13.05.2025

Современные командные интерфейсы давно перестали быть черно-белыми текстовыми программами, которые многие помнят по старым операционным системам. CLI сегодня – это мощные, интуитивные и даже. . .

Конвейеры ETL с Apache Airflow и Python

AI_Generated 13.05.2025

ETL-конвейеры – это набор процессов, отвечающих за извлечение данных из различных источников (Extract), их преобразование в нужный формат (Transform) и загрузку в целевое хранилище (Load). . . .

Выполнение асинхронных задач в Python с asyncio

py-thonny 12.05.2025

Современный мир программирования похож на оживлённый мегаполис – тысячи процессов одновременно требуют внимания, ресурсов и времени. В этих джунглях операций возникают ситуации, когда программа. . .

Работа с gRPC сервисами на C#

UnmanagedCoder 12.05.2025

gRPC (Google Remote Procedure Call) — открытый высокопроизводительный RPC-фреймворк, изначально разработанный компанией Google. Он отличается от традиционых REST-сервисов как минимум тем, что. . .

Наверх

Socket Error 10048 — Specified Address Already in Use

This error only normally occurs during VPOP3 startup. It occurs if some other software running on the same machine as VPOP3 is using one of the ports that VPOP3 is already using. This could be a proxy like WinGate, WinProxy or anti-virus software that acts as a proxy, an LDAP server (e.g. Active Directory) or another mail server program (e.g. Exchange Server). The latter two causes are particularly common on server versions of Windows.

To prevent this problem you should either remove the conflicting service from the other software or change the port which either that other software or VPOP3 uses for that mail service. You can change the ports that VPOP3 uses for its various services on the Services page in the VPOP3 settings.

There are two ways to find out which program is using the conflicting port number. Each provides different evidence so if the results of one method are unclear try the other.

Method 1

Open a command prompt and at the prompt type in telnet <ip> <port> where <ip> is the IP address of the VPOP3 machine and <port> is the port number which is in conflict.

The response you get back should indicate the name of the program currently using the port.

Method 2

The alternative is to use a free tool called TCPView (originally from SysInternals) which lists all the ports currently in use for both TCP and UDP along with which programs are using them.

lightbulb

Error Code 10048

Error code Error Code 10048 is a common Windows issue that typically arises from “Only one usage of each socket address (protocol/network address/port) is normally permitted. [WSAEADDRINUSE (0x2740)]”.

Overview

This article will guide you through resolving Error Code 10048 – “Only one usage of each socket address (protocol/network address/port) is normally permitted. [WSAEADDRINUSE (0x2740)]”. This error occurs when multiple processes attempt to use the same port, leading to system performance issues.

Identifying the Problem

Causes: Error Code 10048 is typically caused by:

  • Conflicting applications using the same port
  • Binding a port that is already in use
  • Misconfigured network settings

Symptoms:

  • Applications failing to start or connect
  • Network connectivity issues
  • System performance degradation

Common Fixes

1. Restart the System:

  • Restarting your system can free up the port and resolve the error.

2. Check for Conflicting Applications:

  • Determine which applications are using the conflicting port.
  • Close or disable the applications that are not essential.

3. Use a Port Scanner:

  • Use tools like TCPView or PortQry to identify the process using the conflicting port.
  • End the process to free up the port.

4. Adjust Network Settings:

  • Check your router or firewall settings to ensure that the required ports are open.
  • Reassign the conflicting port to a different one in the network settings.

Advanced Troubleshooting

1. Modify the Windows Registry:

  • Open the Registry Editor (regedit.exe).
  • Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters.
  • Create a new DWORD value named “TcpTimedWaitDelay” and set its data to a higher value (e.g., 30000).

2. Reset the TCP/IP Stack:

  • Open an elevated command prompt.
  • Run the following commands:

netsh int ip reset
ipconfig /flushdns

  • Restart your system.

Conclusion

Error Code 10048 can be resolved effectively by following the solutions outlined above. Restarting the system, identifying and closing conflicting applications, adjusting network settings, modifying the registry, or resetting the TCP/IP stack can help resolve the issue. To prevent future occurrences, it is advisable to use port management tools to monitor port usage and avoid conflicts.



Сообщ.
#1

,

    Member

    Рейтинг (т): 7

    Привет. Пытаюсь сделать простого клиента, который подсоединяется к серверу. Клиент должен быть запущен на определенном порту, т.е. вызываю bind.
    Сервер привязывается к 127.0.0.1:7777 а клиент к 127.0.0.1:7778. Система WinXP SP3.

    И вот какая странная штука получается: клиент работает без ошибок через раз! Т.е. бывает нормально идут соединения а бывает следующая ошибка: когда я подсоединяюсь к серверу, то первый раз все работает отлично (и bind, и connect), клиент и сервер обмениваются сообщениями. После этого клиент завершается и обязательно вызывается WSACleanup и даже не нужный для Windows Sockets 2 WSACancelBlockingCall(на всякий случай)! И когда я снова пытаюсь подсоединится к серверу вылетает следующая ошибка WSAEADDRINUSE(10048)(Обычно разрешается одно использование адреса сокета).

    Причем странно, что это ошибка вылезает после вызова connect, хотя перед этим вызов bind происходит без ошибки!? Даже когда полностью закрываешь приложение клиента все равно вылезает ошибка.

    Я решил посмотреть какие коннекты есть в системе и выяснилось, что после того как сервер и клиент обменяются информацией и оба закроют сокеты в системе остается соединение с именем процесса [System Process] и остальными данными точно такими же как и у акцептованного сервером сокета (входящее с 127.0.0.01:7778 на 127.0.0.01:7777).

    Это соединение через пару минут пропадает и странно, что OutpostFirewall его не видит вообще. Я поначалу думал, что это из-за фаерволла, но отключив его да и антивирус вдобавок, убедился, что ошибка все равно возникает.

    Дальше я пробую установить в 1 для клиента с помощью setsockopt параметр SO_REUSEADDR, который разрешает — «Allow the socket to be bound to an address which is already in use». Все равно та же ошибка вылетает!

    Далее я пробую разные версии библиотеки Windows Sockets DLL от 1 до 2.2. Все равно та же ошибка!

    Странно также, что сервер запускается и останавливается без проблем без оставления каких-либо соединений с именем [System Process]. Это соединение остается в системе на некоторое время только когда происходит операция accept сервера для клиента, т.е. когда сервер создает параллельное соединение(входящее с 127.0.0.1:7778 на 127.0.0.0.1:7777). Т.е. получается как бы именно этот сокет «превращается» в [System Process] после того как и клиент, и сервер закрывают свои сокеты. Причем даже при закрытии приложения сервера все равно остается в системе на некоторое время(3-4 мин.).

    Может кто сталкивался с проблемой? Понимаю, что если клиент и сервер будут на разных компьютерах, то проблеиы в принципе не будет. Также если не использовать bind для клиента, то все вроде бы работает, но эти [System Process] остаются для каждого коннекта клиента акцептованного сервером, просто порты назначаются каждый раз новые и ошибки WSAEADDRINUSE не происходит.

    PS: Т.е. получается система как бы блокирует порт, который использовался для соединений на какое-то время! Но Брандмауэр Windows отключен…

    Сообщение отредактировано: Grad

    Понравилась статья? Поделить с друзьями:
    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии
  • Почему компьютеры не видят друг друга в локальной сети windows 10
  • M3a770de драйвера на звук windows 10 64 bit
  • Color text python windows
  • System windows forms notifyicon
  • Windows movie maker характеристика программы