Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Why is Nmap failing to bind my source IP?

I was trying to perform a Nmap scan using this IP spoofing command:

where 1.2.3.4 is the source IP that I want to use and 192.168.200.130 is the IP address of my metasploitable machine

but I keep on getting this error:

I can say that the IP spoofing is not working because I tried to verify it on wire-shark.

From the attached picture, it can be clearly seen that the system is still using the original IP address of the kali machine instead of 1.2.3.4 :

attached picture

How do I get around this problem? I don't seem to find a clear solution anywhere. I know the command works because I was trying to follow a tutorial.

Jackdaw's user avatar

  • @Gantendo Same error. Just tried it. –  nim123 Jan 28, 2022 at 5:53
  • So does the system have this IP? You cannot use it otherwise. –  Daniel B Jan 28, 2022 at 5:53
  • @DanielB The system doesn't have that IP but thats the whole point of using -S, isn't it? –  nim123 Jan 28, 2022 at 5:55
  • Yes and no. Did you read the manual on this option? –  Daniel B Jan 28, 2022 at 5:57
  • Yes I did, it says that in order to use the -S option, you also need to specify the interface name, which I have done. –  nim123 Jan 28, 2022 at 5:59

There are multiple reasons why this cannot work on multiple levels.

First: You do not specify -Pn , as recommended in the manual. Then, you are trying to use a TCP scan type (the default, -sS ). Furthermore, your PC does not own the IP address, which means you need raw sockets. It is unclear whether you used sudo or were root when running the command.

Second: If you spoof the source address, response traffic will not come back to your PC. It will go to the selected spoofed address (1.2.3.4). This means you cannot scan targets but at best harass them. This is also mentioned in the manual. Even if you selected another address on the same network, I doubt nmap would participate in ARP/NDP.

Spoofed addresses can only work within certain requirements (ie. where you are in a position to capture the response traffic somehow, e.g. using a switch mirror port or the like).

Third: Across routers or even on the internet, this would doubly not work: The router would not know where to direct the response traffic and simply discard it. Routers may also have strict requirements about source addresses.

Daniel B's user avatar

  • Thanks for the explanation. But I still don't get why it's working for this guy? youtube.com/… –  nim123 Jan 28, 2022 at 15:36
  • In the video, the VM running nmap could be the router (default gateway) for the other VM. There is unfortunately really no way to tell. –  Daniel B Jan 29, 2022 at 1:30

You must log in to answer this question.

Not the answer you're looking for browse other questions tagged linux kali-linux nmap spoofing ..

  • The Overflow Blog
  • Would you trust an AI bot to find the fix for vulnerabilities in your code?
  • Who owns this tool? You need a software component catalog
  • Featured on Meta
  • Upcoming privacy updates: removal of the Activity data section and Google...
  • Changing how community leadership works on Stack Exchange: a proposal and...

Hot Network Questions

  • compute accurate derivatives using FFT
  • X Gender Marker: Entry Restrictions?
  • Why is the SSH server asking for a password even if I specify a valid key?
  • How to find a "short" walk that visits all vertices of a strongly connected directed graph
  • What's wrong with this derivation of the volume of a hemisphere?
  • How do I read the last lines of a huge log file?
  • Smallest group acting transitively on projective space
  • Effectiveness of Requiring Students to Repeat Proofs Presented in Class
  • User Story in a multi technology team
  • Is there a word for an object orbiting a brown dwarf?
  • How to line-break a big equation with a big square root term?
  • The meaning of 我看你呀
  • Which type of female connector is this?
  • Pythagorean pentagons
  • How not to sound midi without real instrument?
  • Fingering for left hand accompaniment over two octaves piano
  • Optimal Solution for OddsBeforeEvens Wolfram Challenge
  • The Devil's Shell Game
  • What happens if I miss my French night train (intercités de nuit) if my connecting Eurostar is delayed or cancelled?
  • How do I properly present dialogue in a scene with two female characters?
  • Can I run wires from separate panels through the same conduit?
  • Shortest path with permutations and fixed dimension
  • How to not fear the supernatural?
  • Is it fine to email several people regarding internship programs and potentially have to turn down one?

cannot assign requested address bind(2)

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

unable to bind socket: Cannot assign requested address issue on ubuntu

I can't update packages taken from the command apt-get update because after fetching the urls i get this error:

Can someone tell me what's wrong?

thanks in advance.

OiRc's user avatar

This happens while installing apt-get install dnsproxy package the configuration file /etc/dnsproxy.conf search "# listen 192.168.168.1" and comment the line or give your system ip address "listen XX.XX.XX.XX" Then run apt-get install -f every thing should be fine.

May be this BUG ;-)

PKumar's user avatar

You must log in to answer this question.

Not the answer you're looking for browse other questions tagged networking apt 13.04 ..

  • The Overflow Blog
  • Would you trust an AI bot to find the fix for vulnerabilities in your code?
  • Who owns this tool? You need a software component catalog
  • Featured on Meta
  • Upcoming privacy updates: removal of the Activity data section and Google...
  • Changing how community leadership works on Stack Exchange: a proposal and...
  • Notifying users about the policy on AU concerning AI-generated content
  • AI-generated content is not permitted on Ask Ubuntu

Hot Network Questions

  • When do I boost to dodge a blue shell?
  • Why doesn't the Moon disrupt the orbits of geostationary satellites?
  • How do I properly present dialogue in a scene with two female characters?
  • How to not fear the supernatural?
  • How to remove artifacts in Plot3D?
  • Increasing trust in a downloaded binary
  • Is it legal for a bank to trap you in an ATM vestibule?
  • I've hit the limit of what ChatGPT can teach me about game development in GDScript — what strategies can I use to keep making progress?
  • Wait for compositor to finish before saving image to file - Python Scripting
  • X Gender Marker: Entry Restrictions?
  • How to line-break a big equation with a big square root term?
  • Make a single object transparent in viewport shading
  • Which countries have jurisdiction to investigate the explosion of the Nord Stream pipelines?
  • Works of scientists, philosophers and mathematicians that (re)surfaced after a long time
  • Old romantic horror movie about a guy that fell in love with a girl and later found out she's a ghost
  • Detecting balanced parentheses
  • Total kinetic energy confusion
  • Maze-Jigsaw Fusion
  • An expression for starting over
  • How is this "bread" puffing up without yeast or baking soda?
  • Shortest path with permutations and fixed dimension
  • Effectiveness of Requiring Students to Repeat Proofs Presented in Class
  • Can AI win against humans in competitive multiplayer computer games
  • Which Potentials lead to Kepler's second Law?

cannot assign requested address bind(2)

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

SSH tunnel throws an error: bind [ip]:801: Cannot assign requested address channel_setup_fwd_listener_tcpip: cannot listen to port: 801

If I forward the port from the server to my localhost (I used my web server on apache on my other virtual machine as the server for forwarding), then everything turns out without problems.

But when trying to grant access to other network members, an error occurs

And of course, when trying to access port 801, nothing worked. I tried to use different ports greater than 4000, when looking at netstat no ports are used, I killed the port but nothing happened.

When trying to use the reverse SSH tunnel, it did not give any errors, but it also failed to open localhost: 801 on the virtual machine

(only on the ssh machine itself through which the tunnel was laid)

when trying to open the SSH debugger ( ssh -R 192.168.0.115:801:127.0.0.1:80 [email protected] -v ), it outputs this:

Settings: in sshd_config changed:

(on all computers)

When trying to connect IPv4, the result did not change ( ssh -4 -L 0.0.0.0:801:192.168.0.115:80 [email protected] )

There could have been an error in the initially incorrect setting, but when resetting all machines and installing from scratch, nothing has changed.

fission's user avatar

You must log in to answer this question.

Not the answer you're looking for browse other questions tagged linux ssh ssh-tunnel ..

  • The Overflow Blog
  • Would you trust an AI bot to find the fix for vulnerabilities in your code?
  • Who owns this tool? You need a software component catalog
  • Featured on Meta
  • Upcoming privacy updates: removal of the Activity data section and Google...
  • Changing how community leadership works on Stack Exchange: a proposal and...

Hot Network Questions

  • Old romantic horror movie about a guy that fell in love with a girl and later found out she's a ghost
  • Detecting balanced parentheses
  • How to easily avoid circular dependencies
  • Which type of female connector is this?
  • Does RMS value of AC signal depend on frequency?
  • How is 学习紧张和劳动并不矛盾 the answer to 那位中学生家长展示的特别简历说明……?
  • Manager asked for home address without giving a reason. Should I have provided it?
  • Increasing trust in a downloaded binary
  • will one piece of sod immediately die?
  • Which countries have jurisdiction to investigate the explosion of the Nord Stream pipelines?
  • Make a single object transparent in viewport shading
  • Are flights in fast jet streams more dangerous?
  • What happens if I miss my French night train (intercités de nuit) if my connecting Eurostar is delayed or cancelled?
  • Are Feroli (italy) and Olimp (Greece) legitimate brands of extra virgin olive oil?
  • Maze-Jigsaw Fusion
  • Is there a word for an object orbiting a brown dwarf?
  • How does EXT4 handle sudden lack of space in the underlying storage?
  • Strings without twin letters
  • Can operators put their satellites to sleep temporarily?
  • Find the n-th Fibonacci number in O(log n) time
  • Works of scientists, philosophers and mathematicians that (re)surfaced after a long time
  • QGIS: expression in attribute table between greater than and less than with different categories in one field
  • Restoring collapsed buried pex line?
  • Shortest path with permutations and fixed dimension

cannot assign requested address bind(2)

L2J Server Discussion Board

Skip to content

  • L2J Server Main High Five Support

[SOLVED]Cannot assign requested address: JVM_Bind

User avatar

Post by tonybpro » Sun Mar 27, 2011 1:54 pm

Code: Select all

Re: Cannot assign requested address: JVM_Bind

Post by hope » Sun Mar 27, 2011 2:02 pm

Post by tonybpro » Sun Mar 27, 2011 2:15 pm

Post by tukune » Sun Mar 27, 2011 2:53 pm

Post by tukune » Sun Mar 27, 2011 3:01 pm

tonybpro wrote: Ports 9014, 2106, 7777 has opened.

Post by tonybpro » Sun Mar 27, 2011 3:03 pm

Post by tonybpro » Sun Mar 27, 2011 4:22 pm

Post by hope » Sun Mar 27, 2011 7:12 pm

Post by tukune » Sun Mar 27, 2011 11:10 pm

Post by tonybpro » Mon Mar 28, 2011 8:08 am

Post by jurchiks » Mon Mar 28, 2011 10:05 am

Post by hope » Mon Mar 28, 2011 2:45 pm

Post by LaP1 » Mon Mar 28, 2011 5:55 pm

Post by tonybpro » Tue Mar 29, 2011 5:35 am

User avatar

Re: [SOLVED]Cannot assign requested address: JVM_Bind

Post by Stake » Tue Mar 29, 2011 1:17 pm

Return to “High Five Support”

  • General Information
  • ↳   Announcements
  • ↳   FAQ - HOWTO - Guides
  • ↳   Official Live Support
  • ↳   Server Discussion
  • ↳   Ertheia Support
  • ↳   Solved/Invalid Ertheia Bug Reports
  • ↳   High Five Support
  • ↳   Legacy Support
  • General Discussion
  • ↳   Tools & Tools Support
  • ↳   Off-Topic Discussion
  • ↳   Website/Forum Support & Suggestions
  • L2J Server Main
  • All times are UTC

Powered by phpBB ® Forum Software © phpBB Limited

Privacy | Terms

Search code, repositories, users, issues, pull requests...

Provide feedback.

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly.

To see all available qualifiers, see our documentation .

  • Notifications

bind: cannot assign requested address #1080

@Taymindis

{{editor}}'s edit

Taymindis sep 30, 2022.

Beta Was this translation helpful? Give feedback.

192.168.1.104 seems the IP of the host, not the guest, so this is an expected behavior.

Maybe you want to try enabling VMnet with the bridged mode so that the VM will get a "real" IP address in the 192.168.1.0/24 network: https://github.com/lima-vm/lima/blob/v0.12.0/docs/network.md

Replies: 4 comments · 8 replies

Jandubois sep 30, 2022 maintainer, akihirosuda sep 30, 2022 maintainer, taymindis oct 1, 2022 author, akihirosuda oct 1, 2022 maintainer.

@jandubois

jandubois Oct 4, 2022 Maintainer

@Taymindis

Taymindis Oct 4, 2022 Author

@Taymindis

This discussion was converted from issue #1077 on October 01, 2022 02:29.

  • Numbered list
  • Unordered list
  • Attach files

Select a reply

IMAGES

  1. DevOps & SysAdmins: bind: cannot assign requested address (2 Solutions

    cannot assign requested address bind(2)

  2. Cannot Assign Requested Address: A Step-By-Step Guide

    cannot assign requested address bind(2)

  3. Ubuntu: Unable to bind socket: Cannot assign requested address issue on ubuntu

    cannot assign requested address bind(2)

  4. Bind: Cannot Assign Requested Address

    cannot assign requested address bind(2)

  5. 解决Cannot assign requested address: JVM_Bind(java虚拟机无法申请地址)问题-CSDN博客

    cannot assign requested address bind(2)

  6. elasticsearch 启动报错解决 cannot assign requested address:bind_es cannot

    cannot assign requested address bind(2)

VIDEO

  1. Why do I get a "Server refused our key" error when I try to connect to my EC2 instance using SSH?

  2. How to do a bind 2

  3. Fix the error could not bind to address 0 0 0 0 80 and let apache2 and nginx work together

  4. BIND 2 ME

  5. Week 1

  6. The message port closed before a response was received

COMMENTS

  1. Cannot assign requested address

    Cannot assign requested address - bind (2) (Errno::EADDRNOTAVAIL) Ask Question Asked 11 years, 2 months ago Modified 3 years, 5 months ago Viewed 36k times 11 I am using rail for teambox at centos 6.3 server, actually this is just a trial and error before applying it live.

  2. bind: cannot assign requested address

    2 Answers Sorted by: 7 In many cases, binding to 0.0.0.0 is the best course of action unless you have a specific reason to bind only to a specific address. But I assume that what you're doing isn't working, because you're trying to bind to the instance's public IP address, which you'll find (via ifconfig) your IP stack isn't aware of.

  3. ssh tunnel

    43 Trying to create a socks (-D) ssh tunnel - Linux box to Linux box (both centos): sshd running on remote side ok. From local machine we do / see this: ssh -D 1080 [email protected]. [email protected]'s password: bind: Cannot assign requested address (where 8.8.8.8 is really my server's IP and 'user' is my real username)

  4. traceroute have error bind: Cannot assign requested address

    1 Answer Sorted by: 2 You need to type traceroute -s with addresses which directly assign to any interfaces on your server. You can type any of this addresses from your output of ip a: 192.168.111.xyz 192.168.111.xyzz But not real public ip because it has assigned to your other device (e.g. router). See man traceroute:

  5. linux

    nim123 1 1 @Gantendo Same error. Just tried it. - nim123 Jan 28, 2022 at 5:53 So does the system have this IP? You cannot use it otherwise. - Daniel B Jan 28, 2022 at 5:53 @DanielB The system doesn't have that IP but thats the whole point of using -S, isn't it?

  6. SSH Bind Address

    SSH Bind Address - Cannot Assign Requested Address Ask Question Asked 1 year, 2 months ago Modified 1 year, 2 months ago Viewed 1k times 0 I've got 2 NIC's, and just want to SSH from one specific interface. As you can see, the -b option in ssh doesn't seem to be able to use my address. Not sure why?

  7. networking

    1 Answer Sorted by: 2 This happens while installing apt-get install dnsproxy package the configuration file /etc/dnsproxy.conf search "# listen 192.168.168.1" and comment the line or give your system ip address "listen XX.XX.XX.XX" Then run apt-get install -f every thing should be fine. May be this BUG ;-) Share Improve this answer Follow

  8. Nginx failed to start. Cannot assign requested address?

    At every boot, nginx failed to start: bind () to [2001:db8::3]:80 failed (99: Cannot assign requested address) Manually starting works fine and manual inspection also showed that the addresses and routes are set. Just setting the IPv6 address in interfaces (without the IPv4 address) worked. Removing the static IPv6 gateway also worked, but then ...

  9. TCPServer Error: Cannot assign requested address

    INFO ruby 2.2.2 (2015-04-13) [x86_64-linux] WARN TCPServer Error: Cannot assign requested address - bind(2) for "::1" port 9222 INFO WEBrick::HTTPServer#start: pid=671 port=9222. I see this warning "TCPServer Error" only on the Linux Platform, I have tried Windows and OSX and both are working fine.

  10. Cannot bind to specific IPs: cannot assign requested address. · Issue

    Trying to bind explicitly to my mac's wifi address results in an error: 192.168.2.2:443: bind: cannot assign requested address. Binding to 127.0.0.1 or 0.0.0.0 explicitly does work, any other IP does not work. Information. macOS Version: 10.15.2 (19C57) Docker for Mac: 2.2.0.0 (42247) Steps to reproduce the behavior. Use ifconfig to find your ...

  11. Cannot assign requested address

    Fork 1.4k Star 7.5k Code Issues 43 Pull requests 14 Discussions Actions Security 10 Insights New issue Cannot assign requested address - bind (2) for "::1" port 3000 (Errno::EADDRNOTAVAIL) #1062 Closed schuetzm opened this issue on Aug 30, 2016 · 6 comments schuetzm closed this as completed on Sep 6, 2016 schuetzm mentioned this issue

  12. SSH tunnel throws an error: bind [ip]:801: Cannot assign requested

    2 Answers Sorted by: 1 For local forwarding, you need to use -g on the command line, or enable GatewayPorts to yes (default no, disabled) in .ssh/config or /etc/ssh_config to allow listening on non-localhost address:

  13. socket.error:[errno 99] cannot assign requested address and namespace

    My server software says errno99: cannot assign requested address while using an ip address other than 127.0.0.1 for binding. But if the IP address is 127.0.0.1 it works. Is it related to namespaces? I am executing my server and client codes in another python program by calling execfile () .

  14. Logstash throws cannot assign requested address

    "Address already in use - bind - Address already in use: bind" usually caused in case when logstash does not turn off; If you are on ubuntu try execute "netstat -lpn" from terminal; then find necessary process by port and KILL THE PROCESS BY PID; also you can use : netstat -lpn| grep: 9200. to find immediately the pid

  15. bind failed: Cannot assign requested address

    1 Answer Sorted by: 12 The function inet_addr returns the address already in network order: The inet_addr () function converts the Internet host address cp from IPv4 numbers-and-dots notation into binary data in network byte order So drop the htonl. Share Improve this answer Follow answered Mar 18, 2013 at 22:26 cnicutar 180k 26 370 395

  16. [SOLVED]Cannot assign requested address: JVM_Bind

    -----# Networking# ----- # Bind ip of the LoginServer, use * to bind on all available IPs# Default: *LoginserverHostname = 192.168.1.2 # Default: 2106LoginserverPort = 2106 # The address on which login will listen for GameServers, use * to bind on all available IPs# Default: *LoginHostname = 192.168.1.2 # The port on which login will listen for ...

  17. bind: cannot assign requested address · lima-vm lima

    bind: cannot assign requested address. Description 192.168.1.105 is my local private ip, but it's not able to assigned lima nerdctl run -d --name nginx -p 192.168.1.105:8809:80 nginx:alpine FATA[0000] failed to create shim task: OCI... Skip to content. Toggle navigation. Sign in Product